Pookkalam by Nivedhitha A N

Code

s1=rectangle(w=200,h=170,fill="#142113",stroke="none")|repeat(6,rotate(60))
s2=rectangle(w=200,h=170,fill="#345731",stroke="none")|repeat(12,rotate(30))
s3=rectangle(w=200,h=170,fill="#6ee366",stroke="none")|repeat(24,rotate(15))
e1=ellipse(w=265,h=60,fill="#5a7857",stroke="none")|translate(x=10)|repeat(36,rotate(10))
e2=ellipse(w=277,h=60,fill="#b8edb4",stroke="none")|translate(x=10)|repeat(36,rotate(10))
c1=circle(r=100,fill="#8bc98e",stroke="none")
l1=line(x1=0,y1=100,x2=0,y2=-100)
l2=line(x1=0,y1=0,x2=-100,y2=0)
show(e2,e1,s3,s2,s1,c1,l1,l2)
#crown
t1=line(x1=0,y1=15,x2=90,y2=15,stroke_width=2)
t2=line(x1=0,y1=20,x2=80,y2=20,stroke_width=2)
t3=line(x1=0,y1=25,x2=70,y2=25,stroke_width=2)
t4=line(x1=0,y1=30,x2=60,y2=30,stroke_width=2)
t5=line(x1=0,y1=35,x2=50,y2=35,stroke_width=2)
t6=line(x1=0,y1=40,x2=40,y2=40,stroke_width=2)
t7=line(x1=0,y1=45,x2=30,y2=45,stroke_width=2)
t8=line(x1=0,y1=50,x2=20,y2=50,stroke_width=2)
t9=line(x1=0,y1=55,x2=10,y2=55,stroke_width=2)
show(t1,t2,t3,t4,t5,t6,t7,t8,t9)
#eye
k1=point(x=0,y=0)
k2=point(x=17,y=8)
k3=point(x=35,y=0)
k4=point(x=17,y=-8)
eye=polygon([k1,k2,k3,k4],fill="white",stroke="none")
ball=circle(r=6,x=17,y=0,fill="black",stroke="none")
eye1=circle(r=6,x=40,y=0,fill="#e6ff57",stroke="none")
show(eye,ball,eye1)
#mountain
m1=point(x=-100,y=0)
m2=point(x=-90,y=10)
m3=point(x=-70,y=0)
mount1=polygon([m1,m2,m3],fill="#051f03",stroke="none")
m4=point(x=-90,y=0)
m5=point(x=-70,y=20)
m6=point(x=-45,y=0)
mount2=polygon([m4,m5,m6],fill="#1c7515",stroke="none")
m7=point(x=-50,y=0)
m8=point(x=-30,y=30)
m9=point(x=0,y=0)
mount3=polygon([m7,m8,m9],fill="#1c7515",stroke="none")
m10=point(x=-75,y=0)
m11=point(x=-40,y=40)
m12=point(x=-20,y=0)
mount4=polygon([m10,m11,m12],fill="#051f03",stroke="none")
show(mount1,mount4,mount2,mount3)
#mouth
p1=point(x=0,y=-60)
p2=point(x=17,y=-50)
p3=point(x=40,y=-60)
p4=point(x=17,y=-70)
mouth=polygon([p1,p2,p3,p4],fill="#073309",stroke="none")
el1=ellipse(w=50,h=30,x=40,y=-65,fill="white",stroke="none")
mo=circle(r=6,x=40,y=-60,fill="#073309",stroke="none")
l=line(x1=0,y1=-60,x2=35,y2=-60,stroke="white")
show(el1,mouth,mo,l)