-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodeapookkalam.py
More file actions
95 lines (95 loc) · 2.64 KB
/
codeapookkalam.py
File metadata and controls
95 lines (95 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
c = circle(r=150,stroke_width = 1)
show(c)
a = circle(x=55,y=55,r=70,fill = "black")
show(a)
a1 = a | rotate(60)
a2 = a | rotate(120)
a3 = a | rotate(180)
a4 = a | rotate(240)
a5 = a | rotate(300)
a6 = a | rotate(360)
b = circle(x=55,y=55,r=60,fill = "green",stroke = "green")
show(b)
b1 = b | rotate(60)
b2 = b | rotate(120)
b3 = b | rotate(180)
b4 = b | rotate(240)
b5 = b | rotate(300)
b6 = b | rotate(360)
c = circle(x=55,y=55,r=50,fill = "red",stroke = "red")
show(c)
c1 = c | rotate(60)
c2 = c | rotate(120)
c3 = c | rotate(180)
c4 = c | rotate(240)
c5 = c | rotate(300)
c6 = c | rotate(360)
d = circle(x=55,y=55,r=40,fill = "#f56b16",stroke = "#f56b16")
show(d)
d1 = d | rotate(60)
d2 = d | rotate(120)
d3 = d | rotate(180)
d4 = d | rotate(240)
d5 = d | rotate(300)
d6 = d | rotate(360)
e = circle(x=55,y=55,r=30,fill = "#f2ff00",stroke = "#f2ff00")
show(e)
e1 = e | rotate(60)
e2 = e | rotate(120)
e3 = e | rotate(180)
e4 = e | rotate(240)
e5 = e | rotate(300)
e6 = e | rotate(360)
f = circle(x=55,y=55,r=20,fill = "white",stroke = "white")
show(f)
f1 = f | rotate(60)
f2 = f | rotate(120)
f3 = f | rotate(180)
f4 = f | rotate(240)
f5 = f | rotate(300)
f6 = f | rotate(360)
show(a1,b1,c1,d1,e1,f1,a2,b2,c2,d2,e2,f2,a3,b3,c3,d3,e3,f3,a4,b4,c4,d4,e4,f4,a5,b5,c5,d5,e5,f5,a6,b6,c6,d6,e6,f6)
i = circle(x=0,y=0,r=80,fill = "#f56b16",stroke = "#f56b16")
show(i)
g = circle(x=0,y=40,r=45,fill = "#fab700",stroke = "#fab700")
show(g)
g1 = g |rotate(72)
g2 = g |rotate(144)
g3 = g |rotate(216)
g4 = g |rotate(288)
g5 = g |rotate(360)
show(g1,g2,g3,g4,g5)
h = circle(x=0,y=40,r=30,fill = "#yellow",stroke = "yellow")
show(h)
h1 = h |rotate(72)
h2 = h |rotate(144)
h3 = h |rotate(216)
h4 = h |rotate(288)
h5 = h |rotate(360)
show(h1,h2,h3,h4,h5)
h = circle(x=0,y=40,r=35,fill = "#fafafa",stroke = "#fafafa")
show(h)
h1 = h |rotate(72)
h2 = h |rotate(144)
h3 = h |rotate(216)
h4 = h |rotate(288)
h5 = h |rotate(360)
show(h1,h2,h3,h4,h5)
j = circle(x=0,y=0,r=60,fill = "yellow",stroke = "yellow")
show(j)
s = rectangle(x=30,y=0,w=25,h=25,fill = '#fae650')
s = circle(x=50,y=0,r=6,fill = '#fcd030',a = 0.5,stroke = '#fc9630')
s1 = s |repeat(20,scale(0.85))
s2 = s1 |repeat(36,rotate(10))
show(s2)
r11 = rectangle(w=70,h=70,fill="violet",stroke='violet',)| rotate(45)
c2=circle(r=30,fill="#f5941d",stroke = '#f5941d')
show(c2)
e1=ellipse(w=30,h=17,x=20,y=0,stroke='white',stroke_width=2,fill="yellow") | rotate(22.5)
petal=e1 | repeat(9, rotate(45))
show(petal)
r3 = rectangle(w=35,h=35,fill="orange",stroke='orange')|repeat(10,rotate(20))
c2 = circle(r=15,fill="red",stroke='yellow')
c1 = circle(r=8,fill="orange",stroke='orange')
show(c2,c1,c3,r31,c6,c7,r32,r3,c8,r4,r5,r6,r7,r8,r9,r10,r11)
show(r3,c2,c1)