Pookkalam by Aswin Kumar

Code

#circle and rectangle function defintion
def circle_cr(r,f,x=0,y=0):
    c=circle(x=x,y=y,r=r,fill=f)
    return c
def rectangle_cr(w,h,f,x=0,y=0):
    r=rectangle(x=x,y=y,w=w,h=h,fill=f)
    return(r)
#outer section of circle
a=rectangle_cr(150*(2**(1/2)),150*(2**(1/2)),'yellow')|rotate(45)
show(a)
a=circle_cr(135,color(r=0,g=0,b=0))
show(a)
a=circle_cr(125,color(r=0,g=0,b=128))
show(a)
for i in range(6):
    c=circle(x=125,y=i*3,r=10,stroke='red')|repeat(36,rotate(10))
    show(c)
#outer middle section
show(circle(r=107.5,fill='cyan'))
b=rectangle_cr(w=50,h=50,f='black')|rotate(45)
e3=ellipse(w=215,h=50,fill='yellow')|repeat(24,rotate(7.5))
e4=ellipse(w=200,h=50,fill=color(r=255,g=69,b=0,a=0.5))|repeat(24,rotate(7.5))
show(circle(r=110,fill='cyan',stroke='green',stroke_width=5))
show(e3,e4)
#inner middle section
e=ellipse(w=150,h=75,stroke=color(r=62,g=6,b=148))|repeat(60*4,rotate(6)|scale(0.98))
a2=circle_cr(75,color(r=236,g=150,b=136))
show(a2)
show(e)
for i in range(7):
    e=e|rotate(45)
    show(e)
#inner section
a3=circle_cr(36,'yellow')
show(a3+b)
a= rectangle(w=32,h=32,stroke='white',stroke_width=0.4) | repeat(60, rotate(5)|scale(0.98))
show(a)