Pookkalam by Aloysious Benoy

Code

main = circle(r=150, fill="black")
white = rectangle (w=209,h=209,fill="purple", stroke="purple") | repeat (15,rotate(50))
yellow = rectangle (w=193,h=193,fill="green", stroke="green")|rotate(15) | repeat (15,rotate(50))
orange = rectangle (w=178,h=178,fill="yellow", stroke="yellow")|rotate(0) | repeat (15,rotate(50))
red = rectangle (w=165,h=165,fill="orange", stroke="orange")|rotate(15) | repeat (15,rotate(50))
darkred = rectangle (w=153,h=153,fill="darkred", stroke="darkred")|rotate(0) | repeat (15,rotate(50))
inner_white = rectangle (w=140,h=140,fill="purple", stroke="white") | repeat (20,rotate(5))

def bottomEllipse(x,y,w,h,fill):
    e = ellipse(x,y+h/2,w,h,fill=fill,stroke="none")
    return(e)
def petal(x,y,h,c1,c2,c3):
    p1=bottomEllipse(x,y,h/2,h,fill=c1)
    p2=bottomEllipse(x,y,h/3,h/1.5,fill=c2)
    p3=bottomEllipse(x,y,h/4,h/2,fill=c3)
    return(p1+p2+p3)
def flower(n,c1,c2):
    d = petal(0,n/4,n,c1,c2,c1)|repeat(8,rotate(45))
    c=circle(r=n/4,fill=c2,stroke="none")
    return(d+c)
d1="pink"
d2="purple"
f1 = flower(25,d1,d2)
c = ellipse(x=60,w=50,h=10,fill="pink") | repeat(36,rotate(10))
c2=circle(r=30,fill="purple")
c3=circle(r=50,fill="yellow")
t=circle(r=58,fill="black")
c4=circle(r=10,fill="white")
t1=circle(r=7,fill="#8c0343")
b=circle(r=70,x=20,y=20)
c5=b|repeat(36,rotate(30))
c6=circle(r=90,fill="purple")
c8=circle(r=98,fill="purple")
c7=circle(r=103,fill="#fabc02")
s=ellipse(x=20,y=20,w=40,h=40)
s1=s|repeat(36,rotate(10))
show(main,white,yellow,orange,red,darkred,inner_white,c7,c8,c6,c5,c,t,c3,c2,s1,c4,t1,f1)