Pookkalam by Aiswarya A

Code

r=rectangle(h=300,w=300,fill='white')
show(r)

c = circle(r=150,fill="maroon")
show(c)
r1 = rectangle(w=211,h=211,fill="red",stroke="red")|repeat(30,rotate(50))
r2= rectangle(w=195,h=195,fill="orangered",stroke="orangered")|rotate(15)|repeat(30,rotate(50))
r3= rectangle(w=179,h=179,fill="orange",stroke="orange")|rotate(20)|repeat(30,rotate(50))
r4= rectangle(w=165,h=165,fill="yellow",stroke="yellow")|rotate(15)|repeat(30,rotate(50))
r5= rectangle(w=152,h=152,fill="white",stroke="white")|rotate(20)|repeat(30,rotate(50))
show(r1,r2,r3,r4,r5)

c1 = circle(r=100,fill='lavender',stroke='none')
show(c1)
r6=rectangle(w=160,h=160,fill='teal',stroke='lavender')
r7=r6|repeat(20,rotate(30))
show(r7)
c2=circle(r=98,fill='pink',stroke='red',stroke_width='1')
show(c2)

e1 = ellipse(w=193,h=95,fill="yellow",stroke="yellow")|repeat(10,rotate(30))
e2 = ellipse(w=180,h=85,fill="orange",stroke="orange")|rotate(15)|repeat(10,rotate(30))
e3 = ellipse(w=160,h=77,fill="red",stroke="red")|rotate(30)|repeat(10,rotate(30))
e4 = ellipse(w=145,h=65,fill="maroon",stroke="maroon")|rotate(15)|repeat(10,rotate(30))
show(e1,e2,e3,e4)

c3=circle(r=55,fill='gold',stroke='hotpink',stroke_width='3')
show(c3)
c4=circle(r=48,fill='olive',stroke='darkorange',stroke_width='2')
show(c4)

c5= circle(r= 5,stroke="red",stroke_width =3,fill = "yellow",)
d = line(x1=5, y1= 0, x2=25, y2 =0) | repeat(12, rotate(30))
e5 = ellipse(w = 10, h = 70,fill = 'red',stroke = 'none') | rotate(10) | repeat(18, rotate(20)) 
layer1=ellipse(w = 10, h = 70,fill = "yellow",stroke = 'none') | rotate(10) | repeat(18, rotate(20)) | scale(0.8)
layer2 = circle(r = 35,fill = "tomato")
layer3 = ellipse(w = 20, h = 90,fill ="darkmagenta") | rotate(20) | repeat(10,rotate(36))
layer4 = ellipse(w = 20, h = 90,fill ="khaki") | repeat(10,rotate(36))

show(layer4,layer3,layer2,e5,layer1,c5,d)