Pookkalam by Malavika Unni

Code

c0 = circle(r=150,fill='#170101',stroke='none')
show(c0)
def s(color, side):
    return rectangle(w=side, h=side, fill=color, stroke='none')

layer1=s(side=211,color='#630707') | repeat(10,  rotate(10)) 
layer2=s(side=199, color='#ff6038') | rotate(5) | repeat(10,  rotate(10)) 
layer3=s(side=185, color='#ffb638') | repeat(10,  rotate(10)) 
layer4=s(side=175, color='#fff27d') | rotate(5) | repeat(10,  rotate(10)) 
layer5=s(side=165, color='white')  | repeat(10,  rotate(10))

show(layer1,layer2,layer3,layer4,layer5)
cir4=circle(r=108,fill="#081682")
show(cir4)
#kireedam
cd=circle(r=70,x=2,y=36,fill="green",stroke="none")
show(cd)
shape = circle(x=60, y=11.5, r=4,fill="white") | repeat(70, rotate(8)|translate(x=5,y=0))
show(shape)
cc=circle(r=58,fill="#ad0505",stroke="none")|translate(x=2,y=36)
show(cc)
ce=circle(r=50,fill="red",stroke="none")|translate(x=2,y=36)
show(ce)
cf=circle(r=40,fill="white",stroke="none")|translate(x=2,y=36)
show(cf)

elli2=ellipse(h=55,w=15,x=0,y=45,fill="#ffa845",stroke="none")
show(elli2)

elli1=ellipse(h=85,w=50,x=0,y=15,fill="#ffa845",stroke="none")
show(elli1)

cb=circle(r=40,x=0,y=5,fill="#f5e214",stroke="none")
show(cb)
ca=circle(r=30,x=0,y=5,fill="#de1840",stroke="none")
show(ca)
shape = circle(r=20,stroke="#5f5491") | repeat(5, translate(y=3))
show(shape)
rect1=rectangle(w=80,h=8,x=0,y=9,fill="red",stroke="none")
show(rect1)


#kathakali face


#show(c1,c2,c4,c5,c6,c8,c9)

s1=rectangle(w=40,h=40,stroke='white')
s2=s1|rotate(45)|translate(y=25)
s3=s1|translate(y=25)
c1=circle(y=-30,r=25,fill='#19bd36',stroke='none')
e1=ellipse(y=-40,w=90,h=45,fill='white',stroke='none')
e2=ellipse(y=-43,w=70,h=30,fill='#d6d0cd',stroke='none')
c2=circle(r=27,fill='#fd5d18',stroke='none')
c3=circle(r=27,stroke='#eafe24')
c4=c3| repeat(5,translate(y=-5))
r1=rectangle(y=-20,w=50,h=15,fill='#19bd36',stroke='none')
l1=line(x1=-30,y1=0,x2=30,y2=0,stroke_width=5,stroke='#972402')
l2=line(x1=-30,y1=-5,x2=30,y2=-5,stroke_width=5,stroke='red')
l3=line(x1=-30,y1=-10,x2=30,y2=-10,stroke_width=5,stroke='#972402')
l4=line(x1=-30,y1=-15,x2=30,y2=-15,stroke_width=5,stroke='red')
s4=rectangle(y=30,w=20,h=15,fill='#fd5d18',stroke='none')
l5=line(x1=-13,y1=30,x2=13,y2=30,stroke_width=5,stroke='#cb3205')
c5=circle(r=15,fill='#fee331',stroke='none')
c6=circle(r=5,fill='#ff4203',stroke='none')
c7=circle(x=8,r=2,fill='#ff4203',stroke='none')
c8=c7|repeat(8,rotate(45))
c9=combine([c5,c6,c8])
c10=c9|translate(x=-39,y=-27)
c11=c9|translate(x=39,y=-27)
show(c10,c11)




e2=ellipse(x=0,y=-58,w=130,h=40,fill='#fdfffc')
show(e2)

e1=ellipse(x=0,y=-58,w=105,h=35,fill='#fdfffc')
show(e1)




s0=rectangle(x=0,y=-20,w=62,h=50,fill='#45de0d',stroke='none')
show(s0)

e3=ellipse(x=-17,y=-8,w=45,h=30,fill='#45de0d',stroke='none')
show(e3)
e4=ellipse(x=17,y=-8,w=45,h=30,fill='#45de0d',stroke='none')
show(e4)
p1=point(x=20,y=7)
p2=point(x=0,y=-30)
p3=point(x=-20,y=7)
t1=polygon([p1,p3,p2],fill='#fff642',stroke='none')
show(t1)






e0=ellipse(x=0,y=-58,w=80,h=40,fill='#45de0d',stroke='none')
show(e0)

c1=circle(r=15,x=0,y=-70,fill='#45de0d',stroke='none')
show(c1)

p4=point(x=30,y=-5)
p5=point(x=35,y=-10)
p6=point(x=10,y=-18)
t2=polygon([p4,p5,p6],fill="black")
show(t2)
p7=point(x=-30,y=-5)
p8=point(x=-35,y=-10)
p9=point(x=-10,y=-18)
t3=polygon([p7,p8,p9],fill="black")
show(t3)

c14=circle(r=4,x=20,y=-60,fill="red",stroke="none")
show(c14)
c15=circle(r=4,x=-20,y=-60,fill="red",stroke="none")
show(c15)
e5=ellipse(w=35,h=12,x=0,y=-60,fill="#f21b34",stroke="none")
show(e5)
c16=circle(r=4,x=3,y=-45,fill="#3aa302",stroke="none")
show(c16)
c17=circle(r=4,x=-3,y=-45,fill="#3aa302",stroke="none")
show(c17)
p11=point(x=0,y=-28)
p12=point(x=5,y=-45)
p13=point(x=-5,y=-45)
t4=polygon([p11,p12,p13],fill="#3aa302",stroke="none")
show(t4)
p14=point(x=30,y=-25)
p15=point(x=20,y=-30)
p16=point(x=7,y=-25)
p17=point(x=20,y=-20)
t4=polygon([p14,p15,p16,p17],fill="white",stroke="none")
show(t4)

p18=point(x=-30,y=-25)
p19=point(x=-20,y=-30)
p20=point(x=-7,y=-25)
p21=point(x=-20,y=-20)
t5=polygon([p18,p19,p20,p21],fill="white",stroke="none")
show(t5)
c18=circle(r=4.5,x=-20,y=-25,fill="black",stroke="none")
show(c18)
c19=circle(r=4.5,x=20,y=-25,fill="black",stroke="none")
show(c19)
p22=point(x=-30,y=-29)
p23=point(x=-20,y=-35)
p24=point(x=-7,y=-29)
l1=polygon([p22,p23,p24],fill="black",stroke="none")
show(l1)
p25=point(x=30,y=-29)
p26=point(x=20,y=-35)
p27=point(x=7,y=-29)
l2=polygon([p25,p26,p27],fill="black",stroke="none")
show(l2)
e5=ellipse(w=6,h=9,x=0,y=-18,fill="black",stroke="none")
show(e5)
p28=point(x=0,y=5)
p29=point(x=-11,y=-5)
p30=point(x=-16,y=5)
t6=polygon([p28,p29,p30],fill="red",stroke="none")
show(t6)
p31=point(x=0,y=5)
p32=point(x=11,y=-5)
p33=point(x=16,y=5)
t7=polygon([p31,p32,p33],fill="red",stroke="none")
show(t7)