Pookkalam by Dilhith Santhosh

Code

#Dilhith 043ab25a8e
#outer layer
c3=circle(r=155,fill="#fc9802", stroke="none") 
c2=circle(r=151,fill="#fc9802",stroke="none")
c1=circle(r=147,fill="#a60202",stroke="none")
show(c3,c2,c1)

rect1=rectangle(w=150,h=150,fill="#820a0a",stroke="none")|repeat(20,rotate(50))
rect2=rectangle(w=170,h=170,fill="#ce0606",stroke="none")|rotate(15)|repeat(20,rotate(50))
rect3=rectangle(w=190,h=190,fill="#fc9802",stroke="none")|repeat(20,rotate(50))
rect4=rectangle(w=210,h=210,fill="#fceb02",stroke="none")|rotate(15)|repeat(20,rotate(50))|scale(0.98)
show(rect4,rect3,rect2,rect1)

c1=ellipse(w=190,h=30,fill="#fc9802",stroke="none")|repeat(8,rotate(50))
c2=ellipse(w=190,h=30,fill="#fc9802",stroke="none")|repeat(9,rotate(40))
c3=ellipse(w=190,h=30,fill="#fc9802",stroke="none")|repeat(100,rotate(10))
show(c3,c2,c1)


c4=circle(r=80,fill="yellow",stroke="none")
c3=circle(r=70,fill="#EDA63D",stroke="none")
c2=circle(r=65,fill="#f2b707",stroke="none")
c1=circle(r=60,fill="#fac528",stroke="none")
show(c4,c3,c2,c1)


c1=ellipse(w=190,h=30,fill="#fc9802",stroke="none")|repeat(8,rotate(50))
c2=ellipse(w=190,h=30,fill="#fc9802",stroke="none")|repeat(9,rotate(40))
c3=ellipse(w=190,h=30,fill="#fc9802",stroke="none")|repeat(100,rotate(10))
show(c3,c2,c1)

rect1=rectangle(w=150,h=150,fill="#820a0a",stroke="none")|repeat(20,rotate(50))
rect2=rectangle(w=170,h=170,fill="#ce0606",stroke="none")|rotate(15)|repeat(20,rotate(50))
rect3=rectangle(w=190,h=190,fill="#fc9802",stroke="none")|repeat(20,rotate(50))
rect4=rectangle(w=210,h=210,fill="#fceb02",stroke="none")|rotate(15)|repeat(20,rotate(50))|scale(0.98)
show(rect4,rect3,rect2,rect1)

#innermost layer #820a0a #ce0606
s1= ellipse(fill="#ce0606",w=32,h=97,stroke="#a60202",stroke_width=2)
s2= s1|rotate(45)
s3= s1|rotate(90)
s4= s1|rotate(135)
show(s1,s2,s3,s4)

#inner layer spiral
p = rectangle () |repeat(20,rotate (10)) 
p = ellipse (stroke="pink") | repeat (20,rotate (10))
p = ellipse (stroke="#a60202") | repeat (30, rotate (10)) 
show(p)