Pookkalam by SHIJIN C

Code

def circle_d(x,y,fcol,scol):
    cshape=circle(r=7,x=x,y=y,fill=fcol,stroke=scol)
    return cshape
o=rectangle(w=300,h=300,fill="#11d489")
l=ellipse(w=75,h=25,fill="red",stroke="none")
l1=l|rotate(-30)
l2=l|rotate(30)
l3=l|rotate(90)
ls=combine([l1,l2,l3])|scale(.45)
ls1=ls|translate(x=-125,y=125)
ls2=ls|translate(x=125,y=-125)
ls3=ls|translate(x=-125,y=-125)
ls4=ls|translate(x=125,y=125)
mls=combine([ls1,ls2,ls3,ls4])
c=circle(r=150,fill="#0221bf",stroke="none")
s=rectangle(w=180,h=180,fill="white",stroke="#09ab34",stroke_width=3)|repeat(16,rotate(20))
p1=rectangle(w=160,h=160,fill="#c756e3",stroke="#db3c23",stroke_width=2)|repeat(18,rotate(5))
p2=rectangle(w=150,h=150,fill="#ffbb69",stroke="#f5ebeb",stroke_width=2)|repeat(18,rotate(20))
ov=rectangle(w=100,h=50,fill="#f27e7e",stroke="none")
oh=rectangle(h=100,w=50,fill="#f2d37e",stroke="none")
ov1=ov|translate(x=-50,y=125)
ov2=ov|translate(x=50,y=-125)
oh1=oh|translate(y=50,x=-125)
oh2=oh|translate(y=-50,x=125)
ouh=rectangle(h=100,w=50,fill="#e34255",stroke="none")
ouh1=ouh|translate(y=-50,x=-125)
ouh2=ouh|translate(y=50,x=125)
ouv=rectangle(w=100,h=50,fill="#e3b542",stroke="none")
ouv1=ouv|translate(x=-50,y=-125)
ouv2=ouv|translate(x=50,y=125)
ovh=combine([ov1,ov2,oh1,oh2,ouh1,ouh2,ouv1,ouv2])
mo=combine([o,mls])
cc=circle(r=90,fill="yellow",stroke="brown",stroke_width=2.5)
cd1=circle_d(75,0,"#d60909","green")|repeat(20,rotate(30))
cd2=circle_d(75,0,"#445bad","green")|rotate(15)
cd21=cd2|repeat(20,rotate(30))
ccd=combine([cc,cd1,cd21])
sq=rectangle(w=90,h=90,fill="#aabaf0",stroke="none")|repeat(2,rotate(45))
sqc=circle(r=45,fill="#f76b20",stroke="green")
tl1=rectangle(w=60,h=60)
tl2=rectangle(x=-10,y=18,w=35,h=12,fill="#05bfce",stroke="none")
tl3=rectangle(x=19,y=18,w=12,h=12,fill="#0060ff",stroke="none")
tl4=rectangle(w=55,h=12,fill="#ffcd10",stroke="none")
tl5=rectangle(x=-14,y=-18,w=27,h=12,fill="#ee1700",stroke="none")
tl6=rectangle(x=10,y=-18,w=7,h=12,fill="#95bf15",stroke="none")
tl7=rectangle(x=20,y=-18,w=7,h=12,fill="#205b67",stroke="none")
show(mo,ovh,c,s,p1,p2,ccd,sq,sqc,tl2,tl3,tl4,tl5,tl6,tl7)