Skip to content

Commit 8f0dbaa

Browse files
authored
Create AD142.py
1 parent 2796479 commit 8f0dbaa

File tree

1 file changed

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

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#awesome design 142 in Pytohn
2+
from turtle import *
3+
import colorsys
4+
tracer(100)
5+
bgcolor("black")
6+
7+
def H():
8+
h = 0
9+
n = 101
10+
up()
11+
goto(0,60)
12+
down()
13+
pensize(5)
14+
for i in range(100):
15+
c = colorsys.hsv_to_rgb(h,1,1)
16+
color(c)
17+
h +=1/n
18+
fd(51)
19+
circle(i,5)
20+
for k in range(i):
21+
fd(42)
22+
rt(63)
23+
bk(5)
24+
circle(k,10)
25+
rt(51)
26+
27+
H()
28+
for p in range(11):
29+
H()
30+
ht()
31+
done()

0 commit comments

Comments
 (0)