Pookkalam by Shifa Shafi

Code

c1 = circle(r=150,fill='maroon')
show (c1)
#outer layer
layer1 = rectangle(w=210,h=210,fill="bisque ", stroke="bisque ") | repeat (20,rotate(50))
show(layer1)
layer2= rectangle(w=192,h=192, fill="darksalmon",stroke="darksalmon")|rotate(15)| repeat(20,rotate(50))
show(layer2)
layer3=rectangle(w=178,h=178,fill="lavenderblush ",stroke="lavenderblush")|repeat(20,rotate(50))
show(layer3)
layer4=rectangle(w=166,h=166,fill="rosybrown ",stroke="rosybrown ")|rotate(15)|repeat(20,rotate(50))
show(layer4)
#middle layer
c2=circle(r=106,fill="maroon",stroke='white')
show(c2)

e1=ellipse(h=165,w=30,fill='white',stroke_width=0.2)|repeat(15,rotate(40))
s1 = ellipse(h=209,w=109,fill='linen',stroke='linen')
s2 = s1 | rotate(45)
s3 = s1 | rotate(90)
s4 = s1 | rotate(135)
s5 = s1 | rotate(180)
show(s1, s2, s3, s4,s5)

e1=ellipse(h=189,w=89,fill="sienna" ,stroke='sienna')|repeat(15,rotate(45))
e2=ellipse(h=169,w=69,fill="mistyrose",stroke='mistyrose')|repeat(15,rotate(45))
e3=ellipse(h=149,w=49,fill="maroon", stroke='maroon') |repeat(15,rotate(45))
show(e1,e2,e3) 


t1=ellipse(w=120,h=80,fill="darksalmon ",stroke="none")|repeat(6,rotate(30))
t2=ellipse(w=110,h=100,fill="bisque ",stroke="none")|repeat(6,rotate(30))
t3=ellipse(w=100,h=90,fill="rosybrown ",stroke="none")|repeat(6,rotate(30))
show(t1,t2,t3)
#circles
f1=circle(r=50,fill="rosy brown ",stroke="none")
f2=circle(r=40,fill="linen",stroke="none")
show(f1,f2)
#innerlayer
s1= ellipse(w=150,h=31,fill="salmon") | repeat(6,rotate(30))
c3= circle(r=60,fill="lightpink ")
c4 = circle(r=50,fill="linen")
s2= ellipse(w=150,h=31,fill="salmon") |repeat(6,rotate (30))
c5 = circle(r=30,fill="salmon")
c6 = circle(r=20,fill="linen ")
e3 = ellipse(w=30,h=5,fill="lightpink ") | repeat(6,rotate(30))
c7=circle(r=5, fill="maroon") 
shape=combine([s1,s2,c3,c4,c5,c6,e3, c7]) | scale(0.65)
show(shape)