Skip to content

Commit 36daabb

Browse files
authored
Create AD114.py
1 parent 6373050 commit 36daabb

File tree

1 file changed

+22
-0
lines changed
  • Awesome Design Collection in Python

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#awesome design 114 in Python
2+
from turtle import *
3+
bgcolor("black")
4+
h = 0
5+
n=200
6+
speed(0)
7+
pensize(3)
8+
colors=("red","green","blue","yellow","cyan","purple","seagreen","orange","black","white")
9+
for col in colors:
10+
pencolor(col)
11+
begin_fill()
12+
for i in range(8):
13+
lt(144)
14+
for j in range(2):
15+
fd(n)
16+
lt(60)
17+
fd(n)
18+
lt(120)
19+
n = n-20
20+
end_fill()
21+
ht()
22+
done()

0 commit comments

Comments
 (0)