Passed
Push — master ( 7e59b4...652770 )
by Erik
01:08
created

example_006.update()   A

Complexity

Conditions 2

Size

Total Lines 9
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 9
rs 10
c 0
b 0
f 0
cc 2
nop 0
1
from pypen import *
2
3
4
def start():
5
    settings.fps = 70
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable settings does not seem to be defined.
Loading history...
6
7
8
def update():
9
    fill_screen("#E33050")
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable fill_screen does not seem to be defined.
Loading history...
10
    i = 0
11
    for x, y in grid(50):
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable grid does not seem to be defined.
Loading history...
12
        i += 1
13
        offset_x = cos(TIME + y + i) * 10
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable cos does not seem to be defined.
Loading history...
Comprehensibility Best Practice introduced by
The variable TIME does not seem to be defined.
Loading history...
14
        offset_y = sin(TIME + x + i) * 10
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable sin does not seem to be defined.
Loading history...
15
16
        circle(x + offset_x, y + offset_y, abs(sin(TIME + i) * 20) + 1, "#F34060")
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable circle does not seem to be defined.
Loading history...
17