Pookkalam by Amal PB

Code

def outer(side,color):
 return rectangle(w=side,h=side,fill=color,stroke="none")
colors = ['brown','yellow','green','white','yellow','orange','#F36636']
size=[140,110,139,196,182,168,154]
red=rectangle(w=size[0],h=size[0],fill=colors[0],stroke="none")|repeat(10,rotate(10))
orange=rectangle(w=size[1],h=size[1],fill=colors[1],stroke="none")|repeat(10,rotate(10))
r1 = rectangle(x=0,y=0,w=85,h=85,fill="#ED6A5E",stroke="white",stroke_width=3)|repeat(11,rotate(60))
c4 = circle(r=50,fill="#B6072A",stroke="white",stroke_width=3)
c = circle(r=139,fill="green",stroke="none")
white=outer(side=196,color="white")|repeat(10,rotate(10))
yellow=outer(side=182,color="yellow")|rotate(5)|repeat(10,rotate(10))
orange=outer(side=168,color="orange")|rotate(10)|repeat(10,rotate(10))
orange1=outer(side=154,color="#F36636")|rotate(15)|repeat(10,rotate(10))
sc = circle(x=25,y=25,r=8,fill='red',stroke='none') | repeat(9,rotate(40))
d = circle(x=25,y=25,r=2,fill='white',stroke='none') | repeat(9,rotate(40))
c = circle(r=150,fill='brown')
e3 = ellipse(h=10,w=5,x=0,y=10,fill="#FFFDE3",stroke="#E6CA73",stroke_width=1) | repeat(60, rotate(100))
c6 = circle(r=4,fill="yellow",stroke="none")
e = ellipse(w=190,h=50,fill="#FF1493",stroke="yellow",stroke_width=2) | repeat(20,rotate(30))
c5 = circle(r=70,fill="green",stroke="yellow",stroke_width=0)
show(c,red,white,yellow,orange,orange1,e,c5,r1,c4,sc,d,e3,c6)