Skip to content

Commit 6072688

Browse files
authored
Create AD130.py
1 parent bca0b1a commit 6072688

File tree

1 file changed

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

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#awesome design 130 in Python
2+
from turtle import *
3+
import colorsys
4+
tracer(232)
5+
bgcolor("black")
6+
7+
def H():
8+
h = 0
9+
n =8
10+
11+
for i in range(500):
12+
c = colorsys.hsv_to_rgb(h,1,1)
13+
color('black')
14+
up()
15+
goto(0,0)
16+
down()
17+
h +=1/n
18+
pensize(1)
19+
rt(150)
20+
circle(i,5)
21+
lt(10)
22+
fd(i*3)
23+
for j in range(i):
24+
color(c)
25+
fillcolor("black")
26+
begin_fill()
27+
rt(50)
28+
circle(j,425,steps=50)
29+
end_fill()
30+
31+
H()
32+
ht()
33+
done()

0 commit comments

Comments
 (0)