Code
#Author:Anandu Dipukumar,1st year btech student @ Nss collage of engineering,pkd
#Branch:EEE
#mob:9747341903
#email:anandudipukumar2002@gmail.com
#Note: program misbehaving when i add more lines,idk why😔
# --NO Laptop/PC were used in the production of this pookalam🤷🥺
# --Please turn off reading mode(bluelight filter) to see exact colours
show(rectangle(w=300,h=300,fill="black"),circle(r=153,fill="#ffb0e6"))
val=9
def fl(clrn,rad):
e40=circle(r=rad,fill=clrn)
e41=circle(x=rad*1.5,r=rad,fill=clrn)|repeat(6,rotate(60))
return(e40+e41)
def f1(c1,c2):
ha=74
O1= ellipse(w=300, h=ha,fill=c1) | repeat(val, rotate(180/val))
O2= ellipse(w=300, h=ha,fill=c2)|repeat(val, rotate(180/val))|rotate(90/val)
O3=O1+O2
return O3
def fl2(ab,bc,cd,de):
ret=fl(ab,bc)|translate(x=cd)|repeat(360/de,rotate(de))
return(ret)
mclr3="skyblue"
mclr4="#b148d2"
f2=f1("red","yellow")|rotate(45/val)|scale(0.945)
f3=f1("#5933e5","#0abb13")
f4=f1("cyan","#fc7f03")|scale(0.945*0.945)
f5=f1("magenta","#c31f48")|rotate(45/val)|scale(0.893*0.945)
show(f3,f2,f4,f5)
#ff7341
show(circle(r=120,fill="yellow"))
show(circle(r=113,fill=mclr4))
v20=rectangle(h=157,w=157,stroke="white",stroke_width=4)
v21=v20|rotate(45)
v30=polygon([point(0,-30),point(30,0),point(0,30)],fill="#f749e6")|translate(x=80)|repeat(8,rotate(45))
#rectangle(h=52,w=52,fill="lightgreen")|rotate(45)|translate(x=73)
l3=rectangle(w=132,h=7,fill=mclr3,stroke="none")|translate(x=65)|repeat(60,rotate(3))|translate(y=-4)
l2=l3|repeat(5,translate(y=-13.5))
l4=rectangle(h=14,w=120,fill=mclr4,stroke=mclr4)|translate(x=121)|repeat(20,rotate(3))|rotate(-25)
l5=rectangle(w=146,h=7,fill=mclr3,stroke="none")|translate(x=6)|repeat(60,rotate(-3))|translate(y=-1)
l6=rectangle(w=136,h=7)|translate(x=67)|repeat(90,rotate(4))|translate(y=-8)
#l7=rectangle(w=80,h=7)|translate(x=40)|repeat(90,rotate(4))
l8=ellipse(w=60,h=38,fill="green")|translate(y=-20)
show(fl2("cyan",3,158,2))
show(fl2("orange",3,173,2))
#show(fl2("lightblue",3,187,2))
#vallam
v1=ellipse(w=100,h=50,fill="black")
v2=ellipse(w=150,h=63,fill=mclr3,stroke="none")|translate(x=20,y=15)
v3=v1+v2|rotate(6)|scale(1.1)|translate(y=-60)
#sailor
v4=ellipse(h=20,w=5,fill="black")
v5=circle(r=3,fill="black")|translate(y=10)
v6=v4|scale(0.7)|rotate(45)|translate(x=3,y=2)
v8=rectangle(w=1,h=20)|translate(x=7,y=-5)|rotate(-15)
v7=v4+v5+v6+v8|translate(x=-48,y=-76)|scale(0.9)
v8=v7|repeat(5,translate(x=15,y=-2))
v9=v3+v8|scale(1)|translate(y=24,x=6)|rotate(3)
show(l5,v9)
#making kathakali face
#thadi
e1=ellipse(y=-40,w=97,h=55,fill="white")
e2=e1|scale(0.87)|translate(y=-1.8)
e3=e2|scale(0.86)|translate(y=-2)
e10=e1+e2+e3|translate(y=11)
#face
e4=ellipse(h=69,w=55,fill="green",stroke="none")|translate(y=-4)
ea4=ellipse(h=70,w=56)|translate(y=-4)
#makudam
mclr="#eabb34"
mclr2="#e9c835"
e5=circle(r=55,fill=mclr)|translate(y=48)
e6=circle(r=48,fill="#decf1a")|translate(y=48)
e42=fl("blue",2)|translate(x=37)|repeat(10,rotate(36))|translate(y=48)
e43=fl("#ff7341",4)|translate(y=28)
e7=circle(r=31,fill=mclr2)|translate(y=22)
e8=e7|scale(0.73)|translate(y=41)
e9=circle(r=13,fill=mclr2)|translate(y=83)
e11=e5+e6+e42+e7+e8+e9
e21=e7+e8+e9|scale(0.9)|translate(y=5)
#e48=e10+e11+e4
#show(e48)
#makudam perfection&chevi
e12=rectangle(w=52,h=25,fill=mclr2,stroke=mclr2)|translate(y=20)
e13=e12|scale(0.74)|translate(y=27)
e14=e13|scale(0.59)|translate(y=50)
e15=circle(r=15,fill=mclr)+circle(r=11,fill="#decf1a")|translate(x=-40)
e16=e15|translate(x=80)
e39=circle(x=51.5,r=3,fill="red")|repeat(9,rotate(36))|repeat(2,rotate(-36))|translate(y=47.8)
v35=e39|scale(0.25)|translate(x=-40,y=-12)
v36=v35|translate(x=80)
e49=e10+e11+e39+e15+e16+v35+v36+ea4+l8+e4+e12+e13+e14
#show(e49)
#show(e15,e16,e4,e12,e13,e14)
#lips
e17=ellipse(w=38,h=10,fill="red",stroke="red")
e18=circle(r=4,fill="red",stroke="red")|translate(x=-18,y=2.7)
#e100=ellipse(w=28,h=10,fill="red")|translate(y=-40)
e19=e18|translate(x=36)
e20=e17+e18+e19|translate(y=-40)|scale(0.7)
#show(e20)
e25=rectangle(h=10,w=25,fill="yellow",stroke_width=0)|translate(y=4)|scale(0.8)
e26=rectangle(h=5,w=20,fill="red")|translate(y=4)|scale(0.8)
e27=rectangle(h=2,w=3,fill="black",stroke="green")|translate(y=4,x=-3.8)|scale(0.8)
e28=e27|translate(x=6)
e48=e49+e20+e25+e26+e27+e28
#show(e48)
e28=rectangle(h=2,w=20,fill="black")|translate(x=-17,y=-3.6)|rotate(-10)
e29=e28|translate(x=-1,y=-6)
e30=ellipse(h=6,w=13,fill="#ffeaea")|translate(x=-16,y=-6.5) |rotate(-10)
e31=e28|translate(x=34,y=-6.3)|rotate(20)
e32=e31|translate(y=-6)
e33=e30|translate(x=32,y=-6.5)|rotate(20)
e34=circle(r=2,fill="black")|translate(x=-16.9,y=-3.6)
e35=e34|translate(x=34.4,y=-0.8)
e50=e48+e28+e29+e30+e31+e32+e33+e34+e35
#show(e50)
e36= rectangle(h=300,w=1)|scale(0.025)|translate(y=-5)
e37=e36|rotate(7)
e38=e36|rotate(-7)
#red dot
#e39=circle(x=51.5,r=3,fill="red")|repeat(7,rotate(36))|repeat(2,rotate(-36))|translate(y=47.8)
e44=e43|scale(0.85)|translate(y=34)
e45=e44|scale(0.8)|translate(y=38)
e46=e44|translate(y=-58,x=-50)|scale(0.8)
e47=e46|translate(x=80)
e51=e50+e43+e44+e45+e46+e47
show(l4+l2+l6+e51|scale(0.6)|translate(y=5))#x=-15=center_allign
#v21=v20|rotate(45)
show(v30,v20,v21)
#show(fl2("yellow",5,193.7,90)|rotate(45))
#show(fl2("red",2.5,193.7,90)|rotate(45))
show(fl2("orange",4,92,90))
show(fl2("#3ad343",4,92,90)|rotate(45))
show(fl2("#e3e10c",2,79,15)|rotate(7.5))
#lamp
show(ellipse(h=5,w=11,fill="green",stroke="green")|translate(y=-9),e37,e38)
o2=ellipse(w=50,h=25,fill="#693c2c",stroke="none")
o3=ellipse(w=40,h=20,fill="#eac7a7",stroke="none")
o4=ellipse(w=30,h=15,fill="#d7a96f",stroke="none")
o5=ellipse(w=20,h=10,fill="#a8622f",stroke="none")
o6=ellipse(w=10,h=5,fill="#bf7b46",stroke="none")
o7=o2+o3+o4+o5+o6|scale(0.8)|translate(y=-101.5)|rotate(22.5)
show(o7|repeat(8,rotate(45)))
show(fl2("yellow",5,193.7,90)|rotate(45))
#show(v30)
#show(fl2("orange",4,92,90))