Skip to content

Commit 5a0b2ef

Browse files
authored
Create AD32.py
1 parent 4c4a850 commit 5a0b2ef

File tree

1 file changed

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

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#awesome Design 32
2+
3+
import turtle as t
4+
import colorsys
5+
t.Screen().bgcolor("black")
6+
h = 0
7+
t.speed(0)
8+
for i in range(220):
9+
t.width(i//100)
10+
c = colorsys.hsv_to_rgb(h,0.8,1)
11+
t.pencolor(c)
12+
t.rt(119)
13+
t.circle(-i*0.5,120)
14+
t.circle(i*0.5,120)
15+
t.circle(-i*0.3,90)
16+
t.circle(i*0.3,90)
17+
h += 0.006
18+
t.done()

0 commit comments

Comments
 (0)