Pookkalam by Arya S Pillai

Code

#EARTH
earth=circle(r=35,x=0,y=15,fill="#87CEFA")
lat=earth|scale(x=0.5)
long1=line(x1=-35,y1=15,x2=35,y2=15)
long2=ellipse(h=15.5,w=41,x=0,y=41.25)
long3=long2|scale(y=-1)|translate(y=30)
bhoomi=combine([earth,lat,long1,long2,long3])|translate(y=-10)

#HAND
lhandrec=rectangle(h=30,w=15,x=-30,y=-5,fill="#FFDBAC",stroke="none")|rotate(45)
lhandsq=rectangle(h=15,w=18,x=-30,y=-30,fill="black",stroke="none")|rotate(45)
lfing=ellipse(h=50,w=15,x=-30,y=0,fill="#FFDBAC",stroke="none")|rotate(35)
lthumb=lfing|scale(0.45)|rotate(-17)|translate(x=-8)
lfing1=ellipse(h=30,w=10,x=-35,y=15,fill="#FFDBAC",stroke="none")|rotate(10)
lnail=ellipse(h=20,w=8,x=-39,y=20,fill="#FFDBAC",stroke="none")
lhand=combine([lhandrec,lhandsq,lfing,lfing1,lnail,lthumb])|translate(x=-15,y=-10)|scale(0.85)
rhand=lhand|scale(x=-1)

#CORONA
c = circle(r=7,fill="#DCDCDC")
r=rectangle(h=3,w=2,x=0,y=8,fill="red")|repeat(8,rotate(45))
e=ellipse(h=3,w=4,x=0,y=10,fill="red")|repeat(8,rotate(45))
eye=circle(r=1,x=2.5,y=1,fill="black")
eye2=eye|scale(x=-1)
brow=line(x1=2,y1=3,x2=4.5,y2=3,stroke_width =0.5)|rotate(15)
brow2=brow|scale(x=-1)
mouth=ellipse(h=3.5,w=7,x=0,y=-5.25)
corona=combine([c,r,e,eye,eye2,brow,brow2,mouth])|translate(y=60)|repeat(8,rotate(45))


#PROTECTIVE_LAYER
tran=color(r=50,g=205,b=50,a=0.75)
outerCircle1 = circle(r=59,fill=tran,stroke="yellow",stroke_width=5)

#INNER
outerCircle2 = circle(r=80,fill="GOLD",stroke="#000000",)
inner=combine([outerCircle1,bhoomi,lhand,rhand])|scale(0.75)
petal=ellipse(h=160,w=10,fill="VIOLET",stroke="none")|repeat(16,rotate(22.5))

#MID_PETAL
p1=ellipse(w=42,h=20,x=1,y=90,fill="#C71585",stroke="Yellow") | repeat(12,rotate(30))
p2=ellipse(w=40,h=30,x=1,y=80,fill="#F99FC9FF",stroke="Yellow") | repeat(12,rotate(30))
p3=ellipse(w=38,h=30,x=1,y=70,fill="#FF1493",stroke="Yellow") | repeat(12,rotate(30))
p4=circle(r=80,fill="Red",stroke="none")
p5=circle(r=60,fill="White",stroke="none")
inner1=combine([p1,p2,p3,p4,p5])


#FLOWERS
f1 = ellipse(h= 70, w=35,fill="white", stroke="yellow")
f2 = f1 | rotate(45)
f3 = f1 | rotate(90)
f4 = f1 | rotate(135)
f5 = ellipse(x=20, y=0, w=20 ,h=12, fill= "#d95471", stroke = 'red', stroke_width = 3) | repeat(9, rotate(45))
f6 = ellipse(x=12, y=0, w=20 ,h=15, fill= "#DDA0DD", stroke = "	#C71585") | repeat(9, rotate(45))
flower=combine([f1,f2,f3,f4,f5,f6])|translate(y=240)|scale(0.5)|repeat(8,rotate(45))

#OUTER
outer1 = rectangle (w=209,h=209,fill="brown", stroke="brown") | repeat (15,rotate(50))
outer2 = rectangle (w=193,h=193,fill="red", stroke="red")|rotate(15) | repeat (15,rotate(50))
outer3 = rectangle (w=178,h=178,fill="orange", stroke="orange")|rotate(0) | repeat (15,rotate(50))
outer4 = rectangle (w=165,h=165,fill="yellow", stroke="yellow")|rotate(15) | repeat (15,rotate(50))
outer5 = rectangle (w=153,h=153,fill="white", stroke="white")|rotate(0) | repeat (15,rotate(50))
final = circle(r=150,fill="black",stroke="#000000")

show(final,outer1,outer2,outer3,outer4,outer5,flower,inner1,outerCircle2,petal,inner,corona)