Passed
Pull Request — master (#6)
by Erik
52s
created

example_003   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 6
eloc 12
dl 0
loc 18
rs 10
c 0
b 0
f 0

3 Functions

Rating   Name   Duplication   Size   Complexity  
A start() 0 2 1
A draw_pattern() 0 5 4
A update() 0 3 1
1
from pypen import *
2
3
4
def start():
5
    settings.fps = 5
6
7
8
def update():
9
    fill("#E33050")
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable fill does not seem to be defined.
Loading history...
10
    draw_pattern()
11
12
13
def draw_pattern():
14
    for i in range(0, 100):
15
        for j in range(0, 100):
16
            if random(1) > 0.5:
17
                rectangle(i*10, j*10, 8, 8, "#F34060")
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable rectangle does not seem to be defined.
Loading history...
18