Pookkalam by Binil Biju

Code

print("Happy Onam")
c1 = circle(r=150,fill="#012e67")
c2 = circle(r=120,fill="#ff5d00")
r2= rectangle(w=200,h=200,fill="#129cff")|repeat(21,rotate(33))
r5= rectangle(w=190,h=190,fill="#ffa500")|repeat(21,rotate(33))
rs= rectangle(w=185,h=190,fill="#ffa500")|repeat(21,rotate(33))
rt= rectangle(w=175,h=190,fill="#ffa500")|repeat(21,rotate(33))
rf= rectangle(w=230,h=200,fill="#129cff")|repeat(21,rotate(33))
rv= rectangle(w=220,h=200,fill="#129cff")|repeat(21,rotate(33))
e2=ellipse(fill="#93c572",stroke="black") | repeat(18, rotate(45))

shapes= c1+rf+rv+r2+rv+rt+r5+c2
show(shapes)
r51 =  rectangle(w=80,h=180,fill="orange",stroke='orange')|repeat(36,rotate(10))
c6 = circle(x=50,y=-50,r=50,fill="#b9c1bd",stroke='#012e67')|repeat(10,rotate(-45))
c7 = circle(x=50,y=-50,r=40,fill="#d3d8ff",stroke='#8c0576')|repeat(10,rotate(-45))
cb = circle(x=50,y=-50,r=36,fill="#ccffcc",stroke='#white')|repeat(10,rotate(-45))
r61 =  rectangle(w=50,h=150,fill="yellow",stroke='yellow')|repeat(36,rotate(15))
r3 =  rectangle(w=40,h=140,fill="orange",stroke='orange')|repeat(36,rotate(10))
c8 = circle(r=90,fill="#012e67",stroke='129cff')
r8 =  rectangle(w=90,h=90,fill="#fffba8",stroke='white')
r9 =  rectangle(w=90,h=90,fill="#fffba8",stroke='white',)| rotate(45)
r10 =  rectangle(w=70,h=70,fill="#129cff",stroke='#129cff')
r4 =  rectangle(w=128,h=128,fill="#fffba8",stroke='#fffba8')
r5 =  rectangle(w=128,h=128,fill="#fffba8",stroke='#fffba8',)| rotate(45)
r6 =  rectangle(w=110,h=110,fill="#ffa500",stroke='yellow')
r7 =  rectangle(w=110,h=110,fill="#0d261d",stroke='#0d261d',)| rotate(45)
r11 =  rectangle(w=70,h=70,fill="#ff6699",stroke='#ff6699',)| rotate(45)
show(r51,c6,c7,cb,r61,r3,e2,c8,r4,r5,r6,r7,r8,r9,r10,r11)
c2=circle(r=30,fill="green")
show(c2)
e1=ellipse(w=30,h=17,x=20,y=0,stroke='#9e0808',stroke_width=3,fill="#f4ff59") | rotate(22.5)
petal=e1 | repeat(49, rotate(39))
show(petal)
r3 =  rectangle(w=35,h=35,fill="orange",stroke='black')|repeat(30,rotate(20))

show(r3)

transcolor = color(r=153, g=0, b=0, a=0.5)


s1 = ellipse(w=35,h=20, fill = transcolor)
s2 = s1 | rotate(45)
s3 = s1 | rotate(90)
s4 = s1 | rotate(135)
show(s1, s2, s3, s4)

s1 = ellipse(w=15,h=10, fill = "white", stroke="white")
s2 = s1 | rotate(45)
s3 = s1 | rotate(90)
s4 = s1 | rotate(135)
show(s1, s2, s3, s4)

transcolor = color(r=15, g=15, b=15, a=0.5)

s1 = ellipse(w=10,h=9, fill = transcolor)
s2 = s1 | rotate(45)
s3 = s1 | rotate(90)
s4 = s1 | rotate(135)
show(s1, s2, s3, s4)