Pookkalam by Amay Varghese

Code

cBase = circle(r=150, fill = "#241115")
show(cBase)
def turtPet(xDir,yDir):
    c1 = circle(r=31,stroke="black",fill="red",x = xDir , y = yDir)
    show(c1)
    c2 = circle(r=25,fill="orange",x = xDir , y = yDir)
    show(c2)
    c3 = circle(r=20,fill="yellow",x = xDir , y = yDir)
    show(c3)
    c4 = circle(r=15,fill="green",x = xDir , y = yDir)
    show(c4)
    c5 = circle(r=10,fill="white",x = xDir , y = yDir)
    show(c5)
cPoo1 = turtPet(0,120)
show(cPoo1)
cPoo1 = turtPet(30,115)
show(cPoo1)
cPoo1 = turtPet(60,104)
show(cPoo1)
cPoo1 = turtPet(85,85)
show(cPoo1)
cPoo1 = turtPet(104,60)
show(cPoo1)
cPoo1 = turtPet(115,30)
show(cPoo1)
cPoo1 = turtPet(120,0)
show(cPoo1)
cPoo1 = turtPet(115,-30)
show(cPoo1)
cPoo1 = turtPet(104,-60)
show(cPoo1)
cPoo1 = turtPet(85,-85)
show(cPoo1)
cPoo1 = turtPet(60,-104)
show(cPoo1)
cPoo1 = turtPet(30,-115)
show(cPoo1)
cPoo1 = turtPet(0,-120)
show(cPoo1)
cPoo1 = turtPet(-30,-115)
show(cPoo1)
cPoo1 = turtPet(-60,-104)
show(cPoo1)
cPoo1 = turtPet(-85,-85)
show(cPoo1)
cPoo1 = turtPet(-104,-60)
show(cPoo1)
cPoo1 = turtPet(-115,-30)
show(cPoo1)
cPoo1 = turtPet(-120,0)
show(cPoo1)
cPoo1 = turtPet(-115,30)
show(cPoo1)
cPoo1 = turtPet(-104,60)
show(cPoo1)
cPoo1 = turtPet(-85,85)
show(cPoo1)
cPoo1 = turtPet(-60,104)
show(cPoo1)
cPoo1 = turtPet(-30,115)
show(cPoo1)
cPoo1 = turtPet(0,120)
show(cPoo1)
sub1 = rectangle (w=180,h=180,fill="white", stroke="white") | repeat (20,rotate(50))
show(sub1)
sub2=rectangle(w=170,h=170, fill="yellow",stroke="yellow")|rotate(15)| repeat(20,rotate(50))
show(sub2)
sub3=rectangle(w=160,h=160,fill="orange",stroke="orange")|repeat(20,rotate(50))
show(sub3)
sub4=rectangle(w=150,h=150,fill="red",stroke="red")|rotate(15)|repeat(20,rotate(50))
show(sub4)
sub5=rectangle(w=140,h=140,fill="black",stroke="black")|rotate(15)|repeat(20,rotate(50))
show(sub5)
c1 = circle(r =90, fill ="green")
show(c1)
e1=ellipse(h=170,w=100,fill='#5e0d1d',stroke='#5e0d1d')|repeat(8,rotate(45))
show(e1)
e1=ellipse(h=150,w=90,fill='white',stroke='white')|repeat(8,rotate(45))
show(e1)
c1 = circle(r=70,fill = "#fa4469")
show(c1)
c1 = circle(r=65,fill = "white")
show(c1)
e1=ellipse(h=120,w=20,fill='red',stroke='red')|repeat(15,rotate(24))
show(e1)
c1 = circle(r=40,fill = "orange")
show(c1)
c1 = circle(r=30,fill = "yellow")
show(c1)
c1 = circle(r=20,fill = "white")
show(c1)
c1 = circle(r=10,fill = "red")
show(c1)