example_006   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 13
dl 0
loc 17
rs 10
c 0
b 0
f 0

2 Functions

Rating   Name   Duplication   Size   Complexity  
A start() 0 2 1
A update() 0 9 2
1
from pypen import *
2
3
4
def start():
5
    settings.fps = 70
6
7
8
def update():
9
    fill_screen("#E33050")
10
    i = 0
11
    for x, y in grid(50):
12
        i += 1
13
        offset_x = cos(TIME + y + i) * 10
14
        offset_y = sin(TIME + x + i) * 10
15
16
        circle(x + offset_x, y + offset_y, abs(sin(TIME + i) * 20) + 1, "#F34060")
17