Pookkalam by Jocelyn Ann Joseph

Code

#pookalam

def outer(side,color):
 return rectangle(w=side,h=side,fill=color,stroke="none")

red=outer(side=214,color="white")|repeat(10,rotate(10))
orange=outer(side=110,color="yellow")|repeat(10,rotate(10))
show(red)

c = circle(r=139,fill="#1f0004",stroke="none")
show(c)

red=outer(side=196,color="#59030d")|repeat(10,rotate(10))
show(red)
red1=outer(side=182,color="#a60316")|rotate(5)|repeat(10,rotate(10))
show(red1)
orange=outer(side=168,color="orange")|rotate(10)|repeat(10,rotate(10))
show(orange)
yellow=outer(side=154,color="yellow")|rotate(15)|repeat(10,rotate(10))
show(yellow)
c1=circle(r=100.1, fill='white',stroke='none')
show(c1)

def square(color, side):
    return rectangle(w=side, h=side, fill=color, stroke="none")
s1 = square(side=140, color="#59030d") | repeat(
    10, rotate(30)) | rotate(45)
s2 = square(side=120, color="#a60316") | repeat(
    10, rotate(30)) | rotate(90)
s3 = square(side=100, color="#bf0b35") | repeat(
    10, rotate(30)) | rotate(45)
s4 = square(side=85, color="#ed1f48") | repeat(
    10, rotate(30)) | rotate(90)
show(s1,s2,s3,s4)

c2=circle(r=49.5, fill='#fffd6b',stroke='none')
show(c2)

e1=ellipse(w=45,h=20,x=27,y=0,fill='orange',stroke='none') | repeat(8, rotate(45))
show(e1)
e2=ellipse(w=35,h=15,x=22,y=0,fill='#f55a00',stroke='#f55a00') | repeat(8, rotate(45))
show(e2)
e3=ellipse(w=35,h=15,x=14,y=0,fill='yellow',stroke='none') | repeat(8, rotate(45))
show(e3)

c3=circle(r=5, fill='white',stroke='none')
show(c3)

e4=ellipse(w=20,h=10,x=14,y=0,fill='#bf0b35',stroke='none') | repeat(8, rotate(45))
show(e4)