Pookkalam by Aiswarya Pradeep

Code

f = color(r=71, g=10, b=23) #dark brown
c = circle(r=150, fill=f)
show(c)


f1 = color(r=209, g=4, b=41) #dark red
f2 = color(r=255, g=123, b=0) #orange
f3 = color(r=255, g=242, b=10) #yellow 
f4 = color(r=245, g=255, b=160) #light yellow
f5 = color(r=35, g=79, b=26) #green
f6 = color(r=216, g=60, b=206) #dark pink
f7 = color(r=56, g=24, b=43) #dark dark brown
f8 = color(r=191, g=5, b=67) # majenta
f9 = color(r=122, g=12, b=82) #medium violet inner triangle poly
f10 = color(r=209, g=10, b=10) ##red red
f11= color(r=247, g=124, b=9)

c2 = circle(r=143, fill=f2, stroke=f2)
show(c2)
c3 = circle(r=124, fill=f4, stroke=f4)
show(c3)
p1 = point(x=87, y=0)
p2 = point(x=100, y=6.5)
p3 = point(x=113, y=0)
p4 = point(x=100, y=-6.5)

shape = polygon([p1, p2, p3, p4], fill="white", stroke="white") | repeat(48, rotate(7.5))
circl = circle(r=101.5, fill = "white", stroke="none")
show(circl)
show(shape)



p1 = point(x=135, y=0)
p2 = point(x=143, y=10)
p3 = point(x=150, y=0)
p4 = point(x=143, y=-10)

shape = polygon([p1, p2, p3, p4], fill=f1, stroke="none") | repeat(48, rotate(7.5))

show(shape)



p1 = point(x=113, y=0)
p2 = point(x=124, y=8)
p3 = point(x=135, y=0)
p4 = point(x=124, y=-8)

shape = polygon([p1, p2, p3, p4], fill=f3, stroke="none") | repeat(48, rotate(7.5))
show(shape)


ci = circle(r=100, fill=f5, stroke="none")
#show(ci)

p1 = point(x=-79, y=0)
p2 = point(x=-99.5, y=6)
p3 = point(x=-99.5, y=-6)
poly = polygon([p1, p2, p3], fill=f, stroke=f) | repeat(9, rotate(40))
#show(poly)


ca= circle(r=78, fill=f3, stroke="none")
#show(ca)
p1 = point(x=95, y=0)
p2 = point(x=75, y=25)
p3 = point(x=75, y=-25)

shapel = polygon([p1, p2, p3], fill="white", stroke="none")

#11111
p1 = point(x=98, y=0)
p2 = point(x=93, y=4.5)
p3 = point(x=88, y=0)
p4 = point(x=93, y=-4.5)
shape1 = polygon([p1, p2, p3, p4], fill=f, stroke=f)


p1 = point(x=81, y=0)
p2 = point(x=84, y=5.5)
p3 = point(x=89, y=0)
p4 = point(x=84, y=-5.5)
shape2 = polygon([p1, p2, p3, p4], fill=f2, stroke="none") | repeat(2, translate(x=0, y=9))

shape3 = polygon([p1, p2, p3, p4], fill=f2, stroke="none") | translate(x=0, y=-9)


p1 = point(x=75, y=0)
p2 = point(x=78, y=3.7)
p3 = point(x=81, y=0)
p4 = point(x=78, y=-3.7)
shape4 = polygon([p1, p2, p3, p4], fill=f4, stroke="none") | repeat(3, translate(x=0, y=9))

shape5 = polygon([p1, p2, p3, p4], fill=f4, stroke="none") | repeat(3, translate(x=0, y=-9))
shape6 = combine([shape4, shape5]) |translate(x=5, y=0)
shapeil = combine([shapel, shape1, shape2, shape3, shape6])
shapeul = shapeil

#show(shapeul)



p1 = point(x=88, y=-0.2)
p2 = point(x=84, y=-4)
p3 = point(x=88, y=-9.8)
p4 = point(x=93, y=-4.2)

shape6 = polygon([p1, p2, p3, p4], fill=f1, stroke=f1) | repeat(2, translate(x=0, y=9.9))


p1 = point(x=81, y=-0.5)
p2 = point(x=84, y=-4.5)
p3 = point(x=81, y=-8.5)
p4 = point(x=78, y=-4.5)
shape7 = polygon([p1, p2, p3, p4], fill=f3, stroke=f3) | repeat(3, translate(x=0, y=9)) | repeat(2, translate(x=0, y=-9))



shapeil = combine([shapel, shape1, shape6, shape2, shape3, shape4, shape5, shape7]) | scale(1.05) | translate(x=-4, y=0)
shapeul = shapeil | repeat(9, (rotate(40.12)))

#show(shapeul)

##########


p1 = point(x=52, y=0)
p2 = point(x=75, y=25)
p3 = point(x=75, y=-25)
shapeu = polygon([p1, p2, p3], fill=f7, stroke="none")
shapeu2 = polygon([p1, p2, p3], fill=f6, stroke="none")
shapeu3 = polygon([p1, p2, p3], fill=f8, stroke="none")


###
p1 = point(x=75, y=0)
p2 = point(x=63, y=12.5)
p3 = point(x=52, y=0)
p4 = point(x=63, y=-12.5)
shapeu1 = polygon([p1, p2, p3, p4], fill=f9, stroke="none")


shapeo = combine([shapeu, shapeu1])



shapex = shapeo | scale(1.06)  | translate(x=-4.8, y=0) | repeat(3, (rotate(120.36))) 
#show(shapex)
shapex1 = shapeu2 | scale(1.06)  | translate(x=-4.8, y=0) | repeat(3, (rotate(120.36)))
shapex2 = shapex1 | rotate(40.12)
#show(shapex2)
shapex3 = shapeu3 | scale(1.06)  | translate(x=-4.8, y=0) | repeat(3, (rotate(120.36)))
shapex4 = shapex3 | rotate(80.24) 
#show(shapex4)

cir = circle(r=59, fill=f5, stroke="none")
#show(cir)



ultshape = combine([ci, poly, ca, shapeul, shapex, shapex2, shapex4, cir]) | scale(0.95)
show(ultshape)




############center




#c = circle(r=58, fill=f2)
#show(c)


sh = ellipse(x=0, y=-22.5, w=56, h=30, fill="white", stroke="white")
shoo = ellipse(x=0, y=-22.5, w=47, h=20, fill="white", stroke="white")


sh1 = ellipse(w=33, h=57, fill=f5, stroke=f5) | scale(1.15)

ci = circle(x=0, y=22, r=35, fill=f2, stroke=f5)

c2 = circle(x=0, y=22, r=32, fill=f10, stroke=f7)

c4 = circle(x=0, y=22, r=22, fill=f8, stroke=f7)




cgrp = circle(x=0, y=27, r=2, fill=f7, stroke=f7) | repeat(20, rotate(20)) | translate(x=0, y=23)



cij = circle(x=0, y=22, r=16, fill=f4, stroke=f7)

cik = circle(x=0, y=8, r=13, fill=f10, stroke=f10)


ciu = circle(x=0, y=-12, r=14, fill=f5, stroke=f5) | scale(1.15)


shu = ellipse(x=0, y=4, w=29, h=15, fill=f3, stroke=f3)

c25 = circle(x=0, y=-10, r=5.5, fill=f3, stroke=f7)
c26 = circle(x=0, y=-10, r=1.5, fill=f2, stroke=f2)

sh2 = ellipse(x=0, y=-0.5,w=37, h=15, fill=f2, stroke=f2)

cgrp1 = circle(x=12, y=-2, r=2, fill=f1, stroke=f1) | repeat(2, translate(x=-24, y=0))
cgrp2 = circle(x=0, y=0, r=2, fill=f1, stroke=f1)
cg = combine([cgrp1, cgrp2])


cgrp11 = circle(x=12, y=-2, r=2, fill=f3, stroke=f3) | repeat(2, translate(x=-24, y=0))
cgrp22 = circle(x=0, y=0, r=2, fill=f3, stroke=f3)
cg1 = combine([cgrp11, cgrp22])



cg2 = cg1 | scale(0.65) | translate(x=0, y=15)

yu = circle(x=0, y=28, r=5, fill=f10, stroke=f10)

s = rectangle(x=0, y=22.3, w=13.5, h=5, fill=f9, stroke=f9)



######## eyebrow

p1 = point(x=-10, y=-7)
p2 = point(x=0, y=-12.5)
p4 = point(x=0, y=-15)
p3 = point(x=-13, y=-11.5)

po = polygon([p1, p2, p4, p3], fill=f7, stroke=f7) | scale(1.15)

p1 = point(x=10, y=-7)
p2 = point(x=0, y=-12.5)
p4 = point(x=0, y=-15)
p3 = point(x=13, y=-11.5)

po1 = polygon([p1, p2, p4, p3], fill=f7, stroke=f7) | scale(1.15)


p1 = point(x=0, y=-12.5)
p2 = point(x=-3, y=-20)
p4 = point(x=3, y=-20)
po2 = polygon([p1, p2, p4], fill=f7, stroke=f7) | scale(1.15)



####eyes

c = ellipse(w=14, h=5, fill="white", stroke="none")

e = circle(r=2, fill="blue", stroke="none")
eye1 = combine([c, e]) | rotate(10) | translate(x=10, y=0)


c = ellipse(w=14, h=5, fill="white", stroke="none")

e = circle(r=2, fill="blue", stroke="none")
eye2 = combine([c, e]) | rotate(350) | translate(x=-10, y=0)

eyes = combine([eye1, eye2]) | scale(0.6) | translate(x=0, y=-12.5) | scale(1.15)


#################lips fin


cil = ellipse(x=20, y=0, w=5, h=15, fill=f10, stroke="none") | rotate(280)
c1 = ellipse(x=20, y=0, w=5, h=15, fill=f10, stroke="none") | rotate(260)
cx = combine([cil, c1]) | scale(2)
ca = circle(x=23, y=-35, r=7, fill=f10, stroke=f10)
cac = circle(x=-23, y=-35, r=7, fill=f10, stroke=f10)
lip = combine([cx, ca, cac]) | scale(0.285) | translate(x=0, y=-15.9)



c5 = circle(x=-17, y=-10, r=5.5, fill=f3, stroke=f2)

c6 = circle(x=17, y=-10, r=5.5, fill=f3, stroke=f2)


kath = combine([sh, shoo, sh1, ci, c2, c4, cgrp, cij, cik, ciu, shu, c25,c26, sh2, cg, cg2, yu, s, po, po1, po2, eyes, lip, c5, c6]) | translate(x=0, y=-9)
show(kath)