We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66a6c8a commit fdb9c1bCopy full SHA for fdb9c1b
Awesome Design Collection in Python/AD102.py
@@ -0,0 +1,32 @@
1
+#awesome design 102
2
+from turtle import *
3
+import colorsys
4
+bgcolor("black")
5
+h = 0.3
6
+speed(0)
7
+pensize(4)
8
+
9
+def design(ang,len):
10
+ seth(ang)
11
+ fd(300-len)
12
+ seth(ang+60)
13
+ circle(110-((110/300)*len),90)
14
+ seth(ang-150)
15
16
17
18
+for i in range(12):
19
+ c = colorsys.hsv_to_rgb(h,0.8,1)
20
+ pencolor(c)
21
+ for j in range(30):
22
+ if j ==29:
23
+ fillcolor(c)
24
+ begin_fill()
25
+ design(i*30,j*5)
26
+ end_fill()
27
+ else:
28
29
+ h += 0.15
30
31
+ht()
32
+done()
0 commit comments