Pookkalam by Fiza E

Code

w=circle(r=150,fill="#800000", stroke="orange")
show(w)
w2=circle(x=135,y=7,r=10,fill="green", stroke="red")|repeat(36,rotate(10))
show(w2)
w3=circle(r=130,fill="orchid")
show(w3)
w4=rectangle(w=180,h=180,fill="yellow")|repeat(9,rotate(10))
show(w4)
w5=circle(r=115,fill="orange")
show(w5)
c1=circle(r=105,fill="green", stroke="yellow",stroke_width=5)
c2=c1|scale(x=1,y=0.5)
s1=c2|rotate(20)

s2=c2|rotate(40)

s3=c2|rotate(60)

s4=c2|rotate(80)
s5=c2|rotate(100)

s6=c2|rotate(120)
s7=c2|rotate(140)
shape1=show(c1,c2,s1,s2,s3,s4,s5,s6,s7)
w6=circle(r=90,fill="brown", stroke="black")
show(w6)
def square(color, side):
    return rectangle(w=side, h=side, fill=color, stroke='none')
light_yellow_layer = square(side=140,color='#fbfc5a') | repeat(10,  rotate(30)) 

yellow_layer = square(side=115, color='#f7da14') | rotate(15) | repeat(10,  rotate(30)) 

orange_layer = square(side=93, color='#F36636') | repeat(10,  rotate(30)) | scale(1.3)

red_layer = square(side=75, color='#a92822') | rotate(15) | repeat(10,  rotate(30)) 

maroon_layer = square(side=58, color='#620706')  | repeat(10,  rotate(30))

black_layer = square(side=40, color='#0d0101') | rotate(15) | repeat(10,  rotate(30)) 

show(light_yellow_layer,yellow_layer,orange_layer,red_layer,maroon_layer,black_layer)
ew=ellipse(w=45,h=45/4,fill="orange", stroke="yellow")|repeat(9,rotate(20))
show(ew)
ee= ellipse (w =39,h=39/4,fill="#800000", stroke="orange") | repeat (9,rotate(20))
show(ee)
e1 = ellipse ( x= 10,y=0, w= 10,h=6,fill="orange", stroke="#800000", stroke_width =1)| repeat (9,rotate(45))
show(e1)
e4=circle(r=6,fill="brown", stroke="green")
e5=circle(r=4,fill="orange", stroke="purple")
e6=circle(r=2,fill="brown", stroke="green")
e7=circle(r=0,fill="green", stroke="purple")
show(e1,e4,e5,e6,e7)
ew=ellipse(w=45,h=45/4,fill="orange", stroke="yellow")|repeat(9,rotate(20))
show(ew)
ee= ellipse (w =39,h=39/4,fill="#800000", stroke="orange") | repeat (9,rotate(20))
show(ee)
e1 = ellipse ( x= 10,y=0, w= 10,h=6,fill="chocolate", stroke="#800000", stroke_width =1)| repeat (9,rotate(45))
show(e1)
e4=circle(r=6,fill="brown", stroke="green")
e5=circle(r=4,fill="orange", stroke="purple")
e6=circle(r=2,fill="brown", stroke="green")
e7=circle(r=0,fill="black", stroke="purple")
show(e1,e4,e5,e6,e7)
w=circle(r=150,fill="#800000", stroke="orange")
show(w)
w2=circle(x=135,y=7,r=10,fill="green", stroke="red")|repeat(36,rotate(10))
show(w2)
w3=circle(r=130,fill="purple")
show(w3)
w4=rectangle(w=180,h=180,fill="yellow")|repeat(9,rotate(10))
show(w4)
w5=circle(r=115,fill="tan")
show(w5)
c1=circle(r=105,fill="darkolivegreen", stroke="gold",stroke_width=5)
c2=c1|scale(x=1,y=0.5)
s1=c2|rotate(20)

s2=c2|rotate(40)

s3=c2|rotate(60)

s4=c2|rotate(80)
s5=c2|rotate(100)

s6=c2|rotate(120)
s7=c2|rotate(140)
shape1=show(c1,c2,s1,s2,s3,s4,s5,s6,s7)
w6=circle(r=90,fill="orange")
show(w6)
def square(color, side):
    return rectangle(w=side, h=side, fill=color, stroke='none')
light_yellow_layer = square(side=140,color='#fbfc5a') | repeat(10,  rotate(30)) 

yellow_layer = square(side=115, color='#f7da14') | rotate(15) | repeat(10,  rotate(30)) 

orange_layer = square(side=93, color='#F36636') | repeat(10,  rotate(30)) | scale(1.3)

red_layer = square(side=75, color='#a92822') | rotate(15) | repeat(10,  rotate(30)) 

maroon_layer = square(side=58, color='#620706')  | repeat(10,  rotate(30))

black_layer = square(side=40, color='#0d0101') | rotate(15) | repeat(10,  rotate(30)) 

show(light_yellow_layer,yellow_layer,orange_layer,red_layer,maroon_layer,black_layer)
ew=ellipse(w=45,h=45/4,fill="orange", stroke="yellow")|repeat(9,rotate(20))
show(ew)
ee= ellipse (w =39,h=39/4,fill="#800000", stroke="orange") | repeat (9,rotate(20))
show(ee)
e1 = ellipse ( x= 10,y=0, w= 10,h=6,fill="orange", stroke="#800000", stroke_width =1)| repeat (9,rotate(45))
show(e1)
e4=circle(r=6,fill="brown", stroke="green")
e5=circle(r=4,fill="orange", stroke="purple")
e6=circle(r=2,fill="brown", stroke="green")
e7=circle(r=0,fill="green", stroke="purple")
show(e1,e4,e5,e6,e7)
ew=ellipse(w=45,h=45/4,fill="orange", stroke="yellow")|repeat(9,rotate(20))
show(ew)
ee= ellipse (w =39,h=39/4,fill="#800000", stroke="orange") | repeat (9,rotate(20))
show(ee)
e1 = ellipse ( x= 10,y=0, w= 10,h=6,fill="orange", stroke="#800000", stroke_width =1)| repeat (9,rotate(45))
show(e1)
e4=circle(r=6,fill="brown", stroke="green")
e5=circle(r=4,fill="orange", stroke="purple")
e6=circle(r=2,fill="brown", stroke="green")
e7=circle(r=0,fill="black", stroke="purple")
show(e1,e4,e5,e6,e7)