Skip to content

Commit 6659b4e

Browse files
committed
- add nested loop truchet variation
1 parent 551b4c8 commit 6659b4e

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
size(600, 600)
2+
background('#004477')
3+
noFill()
4+
stroke('#FFFFFF')
5+
strokeWeight(3)
6+
7+
for row in range(0, height, 50):
8+
for col in range(0, width, 50):
9+
10+
if int(random(2)):
11+
arc(col, row, 50, 50, 0, PI/2)
12+
arc(col+50, row+50, 50, 50, PI, PI*1.5)
13+
else:
14+
arc(col+50, row, 50, 50, PI/2, PI)
15+
arc(col, row+50, 50, 50, PI*1.5, 2*PI)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
mode=Python
2+
mode.id=jycessing.mode.PythonMode

0 commit comments

Comments
 (0)