Pookkalam by Muhammed Rashad

Code

#outerspiral1
shape = rectangle(w=200, h=200,fill="gold",stroke="none") | repeat(18, rotate(angle=10))
show(shape)

#outerspiral2
s1=rectangle(h=200,w=200,fill="#FFA500",stroke="none")|repeat(6,rotate(30))
s2=rectangle(h=150,w=150)|repeat(6,rotate(30))
show(s2,s1)

#innercircle
c6=circle(r=100,fill="#DC143C",stroke="none")
c7=circle(r=90,fill="#016b0a",stroke="none")
show(c6,c7)

#innerspiral
sh = rectangle(w=125, h=125,fill="#FFFFE0",stroke="none") | repeat(18, rotate(angle=10))
show(sh)

#flower
e1=ellipse(h=200,w=80,fill="#880627")|repeat(6,rotate(60))
e2=ellipse(h=250,w=80,fill="#aa0831",stroke="none")|repeat(6,rotate(60))|scale(0.75)
e3=ellipse(h=250,w=80,fill="#cc0a3b",stroke="none")|repeat(6,rotate(60))|scale(0.65)
e4=ellipse(h=250,w=80,fill="#ee0b45",stroke="none")|repeat(6,rotate(60))|scale(0.55)
e5=ellipse(h=250,w=80,fill="#f4295d",stroke="none")|repeat(6,rotate(60))|scale(0.45)
flower=combine([e1,e2,e3,e4,e5])
show(flower|scale(0.86))
      
#innerlayer
c1=circle(r=15,fill="#FFFFE0",stroke="none")
c2=circle(r=25,fill="#f7bf05",stroke="none")
c3=circle(r=35,fill="#FFA500",stroke="none")
c4=circle(r=45,fill="#DC143C",stroke="none")
c5=circle(r=52.5,fill="#800000",stroke="none")
c6=circle(r=100,fill="#DC143C",stroke="none")
show(c5,c4,c3,c2,c1)