Skip to content

Commit 4bfbf79

Browse files
committed
simple sketch for thonny
1 parent e465fde commit 4bfbf79

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

examples/simple_sketch.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
def setup():
2+
size(500, 500)
3+
background(196)
4+
color_mode(HSB, 360, 100, 100)
5+
6+
7+
def draw():
8+
rand_x = random_int(width)
9+
rand_y = random_int(height)
10+
rand_hue = random(360)
11+
12+
fill(rand_hue, 80, 80)
13+
square(rand_x, rand_y, 25)
14+

0 commit comments

Comments
 (0)