Pookkalam by Malavika

Code

c=circle(r=150,fill="black")

r1= rectangle(w=211,h=211,fill="maroon",stroke="maroon")|repeat(30,rotate(50))

r2 = rectangle(w=195,h=195,fill="red",stroke="red")|rotate(15)|repeat(30,rotate(50))

r3= rectangle(w=179,h=179,fill="orange",stroke="orange")|rotate(20)|repeat(30,rotate(50))

r4= rectangle(w=165,h=165,fill="yellow",stroke="yellow")|rotate(15)|repeat(30,rotate(50))

r5 = rectangle(w=152,h=152,fill="white",stroke="white")|rotate(20)|repeat(30,rotate(50))

show(c,r1,r2,r3,r4,r5)

def clr(x,y,a,b):

    s1= ellipse(w=x,h=y,fill=a,stroke=b)

    s2= s1|rotate(45)

    s3= s1|rotate(90)

    s4= s1|rotate(135)

    show( s1,s2,s3,s4)

clr1=clr(190,90,'yellow','yellow')

clr2=clr(170,80,'orange','orange')

clr3=clr(150,70,'red','red')

clr4=clr(130,60,'brown','brown')

def cle(x,y,z):

    c=circle(r=x,fill=y,stroke=z)

    show(c)

c1=cle(50,'white','white')

c2=cle(43,'yellow','yellow')

c3=cle(35,'red','red')

elip=ellipse(w=50,h=10,fill="yellow")|repeat(52,rotate (13))

show(elip)

cp=circle (r=5,fill='red')

show(cp)