Pookkalam by Abdul Musawir ap

Code


r=rectangle(w=300,h=300,fill="#7bdff2")  
hbg1a = ellipse(w=15,h=70,y=170,stroke="none",fill="#e01e37") + ellipse(w=20,h=25,y=190,stroke="none",fill="#e01e37") + ellipse(w=6,h=40,y=195,stroke="none",fill="#e01e37") + ellipse(w=8,h=13,y=190,stroke="#ffc300",fill="#ffdd00")
hbg1 = ellipse(w=80,h=70,y=140,fill="#e01e37",stroke="none") + ellipse(w=80,h=60,y=135,stroke_width=(2),stroke="#fdfcdc")+ ellipse(w=85,h=40,y=128,fill="green",stroke="none") + ellipse(w=110,h=70,y=110,fill="#f07167",stroke="none") + ellipse(w=105,h=60,y=105,stroke_width=(2),stroke="#fdfcdc")+ ellipse(w=105,h=60,y=95,stroke_width=(2),stroke="#fdfcdc")+ ellipse(w=105,h=60,y=84,stroke_width=(2),stroke="#fdfcdc") + ellipse(w=105,h=60,y=78,fill="#e36414",stroke="none") + ellipse(w=105,h=60,y=73,fill="#d62828",stroke="none") + ellipse(w=105,h=60,y=67,fill="#fef9ef",stroke="none") + ellipse(w=105,h=60,y=64,fill="#0fd780",stroke="none") +ellipse(w=105,h=60,y=59,fill="#fef9ef",stroke="none") + ellipse(w=105,h=60,y=54,fill="#ee6c4d",stroke="none") + ellipse(w=105,h=60,y=47,fill="#d62828",stroke="white")
#show(hbg1)
hdpoo = circle(r=50,stroke_width=(4),stroke="red",fill="#43aa8b") + (ellipse(w=80,h=25,stroke="none",fill="#ffd670") | repeat(4,rotate(45))) + circle(r=10,stroke="#f94144",stroke_width=(4),fill="#fe7f2d") 
hdp = ((hdpoo) | scale(0.28) |translate(x=0,y=125)) + ((hdpoo) | repeat(3,scale(0.7) | translate(x=25,y=30))) + ((hdpoo) | repeat(3,scale(0.7) | translate(x=-25,y=32)))
hdp2 = (hdp) | translate(x=0,y=142) | scale(0.6)
#show(hdp)
fhbg1 = (ellipse(x=16,y=30,w=67,h=67,stroke_width=(2),stroke="white")) + (ellipse(x=-16,y=30,w=67,h=67,stroke_width=(2),stroke="white"))
fhbg2 = (ellipse(x=16,y=30,w=69,h=69,stroke_width=(1),stroke="red")) + (ellipse(x=-16,y=30,w=69,h=69,stroke_width=(1),stroke="red"))
fhbg3 = (ellipse(x=16,y=30,w=71,h=71,stroke_width=(2),stroke="white")) + (ellipse(x=-16,y=30,w=71,h=71,stroke_width=(2),stroke="white"))
fhbg4 = (ellipse(x=16,y=30,w=73,h=73,stroke_width=(2),stroke="red")) + (ellipse(x=-16,y=30,w=73,h=73,stroke_width=(2),stroke="red"))
fhbg5 = (ellipse(x=16,y=30,w=74,h=74,stroke_width=(2),stroke="white")) + (ellipse(x=-16,y=30,w=74,h=74,stroke_width=(2),stroke="white"))
#show(fhbg1,fhbg2,fhbg3,fhbg4,fhbg5)

bge1 = ellipse(y=-11,w=120,h=60,stroke="none",fill="#ffffff") + ellipse(y=-11,w=105,h=50,stroke="none",fill="#e5e5e5") + ellipse(y=-11,w=95,h=45,stroke="none",fill="#edf2f4")

fcol ="green" #"#0fd780" #"#abff4f"
e1 = ellipse(w=100,h=50,stroke="none",fill=fcol) + ellipse(y=-11,w=50,h=40,stroke="none",fill=fcol) + ellipse(x=16,y=30,w=65,h=65,stroke="none",fill=fcol) + ellipse(x=-16,y=30,w=65,h=65,stroke="none",fill=fcol)


eyebg = ellipse(x=22,y=18,w=25,h=10,stroke="none",fill="#212529") + ellipse(x=-22,y=18,w=25,h=10,stroke="none",fill="#212529")
#eyebg2 = ellipse(x=-22,y=18,w=25,h=10,stroke="none",fill="#212529")

eye1 = (ellipse(x=20,y=20,w=19,h=8,stroke="none",fill="#212529")) + (ellipse(x=20,y=19.5,w=16.5,h=5.5,stroke="none",fill="#ffffff"))
eye2 = (ellipse(x=-20,y=20,w=19,h=8,stroke="none",fill="#212529")) + (ellipse(x=-20,y=19.5,w=16.5,h=5.5,stroke="none",fill="#ffffff"))
eyes = (eye1+eye2)
eyeball = (circle(r=2.5,x=20,y=19,stroke_width=(0.7),stroke="black")) + (circle(r=1.7,x=20,y=18,fill="#014f86",stroke="none")) + (circle(r=2.5,x=-20,y=19,stroke_width=(0.7),stroke="black")) + (circle(r=1.7,x=-20,y=18,fill="#014f86",stroke="none"))


p1 = point(x=10,y=10)
p2 = point(x=30,y=19)
p3 = point(x=37,y=12)
p4 = point(x=44,y=14)
p4a = point(x=44,y=12)
p5 = point(x=35,y=7)
p6 = point(x=30,y=14)
p7 = point(x=12,y=9)
p8 = point(x=9,y=8)
eyebrow = polygon([p1,p2,p3,p4,p4a,p5,p6,p7,p8],fill="#212529") | scale(1.05) | translate(x=0,y=15)
#show(r1,eyebrow)

p1 = point(x=-10,y=10)
p2 = point(x=-30,y=19)
p3 = point(x=-37,y=12)
p4 = point(x=-44,y=14)
p4a = point(x=-44,y=12)
p5 = point(x=-35,y=7)
p6 = point(x=-30,y=14)
p7 = point(x=-12,y=9)
p8 = point(x=-9,y=8)
eyebrow2 = polygon([p1,p2,p3,p4,p4a,p5,p6,p7,p8],fill="#212529") | scale(1.05) | translate(x=0,y=15)

p1 = point(x=14,y=63)
p2 = point(x=0,y=58)
p3 = point(x=-14,y=63)
p4 = point(x=-14,y=45)
p5 = point(x=14,y=45)
npA = (polygon([p1,p2,p3,p4,p5],fill="yellow",stroke="none")) + (ellipse(w=14,h=1,fill="yellow",stroke="none") | rotate(20) | translate(x=7,y=61)) + (ellipse(w=14,h=1,fill="yellow",stroke="none") | rotate(160) | translate(x=-7,y=61)) + ellipse(w=28,h=20,y=43,fill="#ffc300",stroke="none") + ellipse(w=28,h=20,y=45,fill="yellow",stroke="none")

p1b = point(x=9,y=62)
p2b = point(x=0,y=59.5)
p3b = point(x=-9,y=62)
p4b = point(x=-9,y=45)
p5b = point(x=0,y=53)
p6b = point(x=9,y=45)
colb = "red"
npB = (polygon([p1b,p2b,p3b,p4b,p5b,p6b],fill=colb,stroke="none")) + (ellipse(w=9,h=1,fill=colb,stroke="none") | rotate(20) | translate(x=4,y=60)) + (ellipse(w=9,h=1,fill=colb,stroke="none") | rotate(160) | translate(x=-4,y=60))
cnp = circle(r=3,x=0,y=42,fill="#343a40",stroke_width=(1),stroke="#d62828")
nettipattam = (npA + npB + cnp)
#show(nettipattam)

nose1 = line(x1=-5,y1=19, x2=-8,y2=3,stroke="#212529") + line(x1=6,y1=10, x2=8,y2=3,stroke="#212529")

maske = (ellipse(h=48,w=5,fill="#00afb9",stroke="none") | rotate(173) | translate(x=47,y=0)) + (ellipse(h=48,w=5,fill="#00afb9",stroke="none") | rotate(7) | translate(x=-47,y=0)) 
p1 = point(x=50,y=24)
p2 = point(x=0,y=33)
p3 = point(x=-50,y=24)
p4 = point(x=-44,y=-24)
p5 = point(x=-2,y=-37)
p5a = point(x=0,y=-37.5)
p5b = point(x=2,y=-37)
p6 = point(x=44,y=-24)
maskp =  polygon([p1,p2,p3],stroke_width=(3),stroke="white") + (polygon([p1,p2,p3,p4,p5,p5a,p5b,p6],fill="#00afb9",stroke="none") )
sp1 = point(x=40,y=20)
sp2 = point(x=0,y=24)
sp3 = point(x=-40,y=20)
sp4 = point(x=0,y=21)
c1 = color(r=144, g=224, b=239, a=0.5) #144, 224, 239
shade1 = (polygon([sp1,sp2,sp3,sp4],fill=c1,stroke="none")   ) | repeat(2,translate(x=0,y=-9))
sp1 = point(x=40,y=-10)
sp2 = point(x=0,y=-16)
sp3 = point(x=-40,y=-10)
sp4 = point(x=0,y=-13)
c1 = color(r=144, g=224, b=239, a=0.5) #144, 224, 239
shade2 = (polygon([sp1,sp2,sp3,sp4],fill=c1,stroke="none")   ) | repeat(2,translate(x=0,y=-8))
valli = (ellipse(w=75,h=25,stroke_width=(3),stroke="white") | rotate(50) | translate(x=45,y=0)) + (ellipse(w=75,h=25,stroke_width=(3),stroke="white") | rotate(130) | translate(x=-45,y=0))
#show(r,valli,maske,mask,shade1,shade2)
mask = (valli+maske+maskp+shade1+shade2) | scale(0.7) | translate(x=0,y=-8)

k1 = circle(r=50,stroke_width=(4),stroke="red",fill="#ffc300") + circle(r=10,stroke="#ee6c4d",stroke_width=(4),fill="#3a86ff") + (ellipse(w=20,h=7,x=30,stroke="none",fill="#ee6c4d") | repeat(15,rotate(24))) | scale(0.25) | translate(x=55,y=10) | repeat(2,translate(x=-110,y=0))
k2 = circle(r=50,stroke_width=(4),stroke="red",fill="#ffc300") + circle(r=10,stroke="#ee6c4d",stroke_width=(4),fill="#3a86ff") + (ellipse(w=20,h=7,x=30,stroke="none",fill="#ee6c4d") | repeat(15,rotate(24))) | scale(0.17) | translate(x=55,y=10) | repeat(2,translate(x=-110,y=0)) | translate(x=0,y=19)
hdkammal = (k1) | translate(x=0,y=88) |scale(0.95)
kammal = (hdkammal+k1+k2)
#show(kammal)
c = circle(r=100,fill="#bc3908",stroke_width=(4),stroke="#ffd60a") #"ef8354"fb6107
c1 = circle(r=5,fill="#ffd60a",stroke="none") + (rectangle(w=5,h=5,stroke="none",fill="#ffd60a") | rotate(45) | translate(x=3.5,y=0) ) | scale(0.7) |translate(x=88,y=0) | repeat(25,rotate(14.4))
c2 = circle(r=80,fill="#14746f",stroke_width=(3),stroke="#88d4ab") + (circle(r=2,fill="#ffd60a",stroke="none") | translate(x=72,y=0) | repeat(25,rotate(14.4)))
c3 = circle(r=65,fill="#fb6107",stroke_width=(2.5),stroke="#fdf8e1") + ((circle(r=2.5,fill="#ffd60a",stroke="none") | translate(x=52,y=0)) + (circle(r=1.7,fill="#ffd60a",stroke="none") | translate(x=5.5,y=0) | repeat(6,rotate(60)) | translate(x=52,y=0)) | repeat(14,rotate(25.71)))
c4 = circle(r=41,fill="#db3a34",stroke="none") + circle(r=37.5,fill="#fe5f55",stroke_width=(2),stroke="#fdf8e1") + (circle(r=2,fill="#3a7ca5",stroke="none") | translate(x=30,y=0) | repeat(15,rotate(24)))
hdpoo = ( circle(r=50,stroke_width=(4),stroke="red",fill="#43aa8b") + (ellipse(w=80,h=25,stroke="none",fill="#ffd670") | repeat(4,rotate(45))) + circle(r=10,stroke="#f94144",stroke_width=(4),fill="#fe7f2d") ) | scale(0.45)
bgrounds = (c+c1+c2+c3+c4+hdpoo) | translate(x=0,y=150)

theyyam = (bgrounds+hbg1a+hbg1+hdp+hdp2+fhbg1+fhbg2+fhbg3+fhbg4+fhbg5+bge1+e1+eyebg+eyes+eyeball+eyebrow+eyebrow2+nettipattam+nose1+mask+kammal) | translate(x=0,y=-100)
show(r,theyyam)