Skip to content

Commit 6468c98

Browse files
authored
Create AD33.py
1 parent 5a0b2ef commit 6468c98

File tree

1 file changed

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

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#awesome Design 33
2+
3+
import turtle as t
4+
import colorsys
5+
t.width(20)
6+
h = 0
7+
t.tracer(200)
8+
t.bgcolor("black")
9+
t.setup(1537,865)
10+
11+
12+
13+
for i in range(2000):
14+
c = colorsys.hsv_to_rgb(h,1,1)
15+
h += 0.01
16+
t.pencolor(c)
17+
t.begin_fill()
18+
t.fd(i)
19+
t.rt(60)
20+
t.fd(i)
21+
t.circle(i,-120)
22+
t.fd(i)
23+
t.rt(180)
24+
t.circle(-i,-60)
25+
t.end_fill()
26+
27+
t.done()

0 commit comments

Comments
 (0)