Completed
Push — master ( c37b8d...0e5d6a )
by
unknown
30s queued 12s
created

example_010.update()   A

Complexity

Conditions 1

Size

Total Lines 13
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 9
nop 0
dl 0
loc 13
rs 9.95
c 0
b 0
f 0
1
from pypen import *
2
3
4
def start():
5
    settings.fps = 60
6
7
def update():
8
    save()
9
    translate(WIDTH/2, HEIGHT/2)
10
11
    x1 = 200 * cos(TIME - 10 * sin(TIME)) * cos(TIME)
12
    y1 = 200 * sin(TIME - FRAME/10) * sin(TIME)
13
14
    x2 = 200 * cos(TIME + FRAME ** 0.5) * cos(TIME-0.5)
15
    y2 = 200 * sin(TIME + FRAME/10 - 10*cos(TIME/10)) * sin(TIME - 0.5)
16
17
    line(x1, y1, x2, y2, (150, 30, 230, 10), 0.2)
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable line does not seem to be defined.
Loading history...
18
19
    restore()
20