Pookkalam by Savanth P.S

Code

#layer 0 - white black
c1= rectangle(w=400,h=400,fill="white",stroke="none")
show(c1)

#layer 1 - base black
c1= circle(r=150,fill="#171616",stroke="none")
show(c1)

#layer2
e1 = ellipse(x=122,y=0,w=50,h=20, fill="#700f2e",stroke="none", stroke_width=3)| repeat(36, rotate(10))
show(e1)

#layer3
c2 = circle(x=138,y=0,r=3, fill="#1b3801",stroke="none")| repeat(36, rotate(10))
show(c2)
c3 = circle(x=143,y=0,r=2, fill="#d1bd28 ",stroke="none")| repeat(36, rotate(10))
show(c3)

#layer4
c4= circle(r=128,fill="#700f2e",stroke="none")
show(c4)

#layer5
e2 = ellipse(x=118,y=0,w=50,h=20, fill="#c3620c",stroke="none")| rotate(5)
e3 = e2| repeat(36, rotate(10))
show(e3)

#layer6
c5= circle(r=128,fill="#c3620c",stroke="none")
show(c5)

#layer6
e4 = ellipse(x=109,y=0,w=50,h=20, fill="#d1bd28",stroke="none")| rotate(10)
e5 = e4| repeat(36, rotate(10))
show(e5)

#layer7
c6= circle(r=120,fill="#d1bd28",stroke="none")
show(c6)

#layer8
e6 = ellipse(x=106,y=0,w=50,h=20, fill="#f6f6f6",stroke="none")| rotate(5)
e7 = e6| repeat(36, rotate(10))
show(e7)



#layer10
c8 = circle(x=122,y=0,r=4,fill="#c3620c",stroke="#1b3801")| rotate(5)
c9 = c8| repeat(36, rotate(10))
show(c9)

#layer11
e8 = ellipse(x=122,y=0,h=6,w=4,fill="#760423",stroke="none")| rotate(5)
e9 = e8| repeat(36, rotate(10))
show(e9)
e8 = ellipse(x=122,y=0,h=4,w=6,fill="#760423",stroke="none")| rotate(5)
e9 = e8| repeat(36, rotate(10))
show(e9)
c10 = circle(x=122,y=0,r=2,fill="#f3f3f3",stroke="none")| rotate(5)
c11 = c10| repeat(36, rotate(10))
show(c11)

#layer9
c7= circle(r=114,fill="#c3620c",stroke="none")
show(c7)

#layer11
c7= circle(r=113,fill="#171616",stroke="none")
show(c7)

#layer12
r13 = rectangle(x=0,y=0,w=159,h=159,fill="#760423",stroke="none")| repeat(2, rotate(45))
show(r13)
r14 = rectangle(x=0,y=0,w=159,h=159,fill="#c3620c",stroke="none")|rotate(22.5)
r15 = r14|rotate(45)
show(r14,r15)

#layer13-black cicle after rectangles in rotaion
c16 = circle(x=0,y=0,r=86,fill="#171616",stroke="none")
show(c16)

#layer14-rectnagle totated inside circles and shapes - combination circles of green,white,yellow
c17 = circle(x=100,y=0,r=5,fill="#f3f3f3",stroke="none")+circle(x=100,y=0,r=4,fill="#d1bd28",stroke="none")+circle(x=100,y=0,r=2,fill="#1b3801",stroke="none")
c17 = c17| repeat(8, rotate(45))
show(c17)

#layer15-ovals outsde sqaures
e17 = ellipse(x=106,y=0,w=5,h=8,fill="#f3f3f3",stroke="none")+ellipse(x=106,y=0,w=8,h=5,fill="#f3f3f3",stroke="none")+circle(x=106,y=0,r=3,fill="#1b3801",stroke="none")+circle(x=106,y=0,r=2,fill="#c3620c",stroke="none")|rotate(11)
e17 = e17 |repeat(16, rotate(22.5))
show(e17)

#layer16
c20 = circle(r=85,fill="#d1bd28",stroke="none")
e21 = ellipse(x=63,y=0,w=40,h=46,fill="#1b3801",stroke="none")|repeat(8, rotate(45))
c21 = circle(r=75,fill="#760423",stroke="none")
show(c20,e21,c21)

#layer17
p1 = point(x=50, y=5)
p2 = point(x=74, y=0)
p3 = point(x=50, y=-5)
shape1 = polygon([p1, p3, p2,p1],fill="#d1bd28",stroke="none")|repeat(16, rotate(22.5))

shape2 = polygon([p1, p3, p2,p1],fill="#c3620c",stroke="none")|rotate(11.25)
shape2 = shape2 |repeat(16, rotate(22.5))
show(shape1,shape2)

p1 = point(x=75, y=5)
p2 = point(x=50, y=0)
p3 = point(x=75, y=-5)
shape3 = polygon([p1, p3, p2,p1],fill="#1b3801",stroke="none")|repeat(32, rotate(11.25))
show(shape3)

#layer 18
e23 = ellipse(x=35,y=0,w=30,h=20,fill="#1b3801",stroke="none")|repeat(16, rotate(22.5))
c23 = circle(r=45,fill="#f3f3f3",stroke="none")+circle(r=44,fill="#c3620c",stroke="none")
c24 = circle(x=47,r=1,fill="#c3620c ",stroke="none")|repeat(16, rotate(22.5))
c25 = circle(x=48,r=1,fill="#d1bd28 ",stroke="none")|rotate(11.25)
c25 = c25|repeat(16, rotate(22.5))
show(e23,c23,c24,c25)

#layer 19
r25 = rectangle(x=0,y=0,w=62,h=62,fill="#760423",stroke="none")|repeat(16, rotate(22.5))
c26 = circle(x=0,r=36.6,fill="#d1bd28",stroke="#f3f3f3")
r26 = rectangle(x=0,y=0,w=50.6,h=50.6,fill="#760423",stroke="none")|repeat(16, rotate(22.5))
c27 = circle(x=0,r=30,fill="#1b3801",stroke="#f3f3f3")
r27 = rectangle(x=0,y=0,w=41,h=41,fill="#760423",stroke="none")|repeat(16, rotate(22.5))
c28 = circle(x=0,r=24,fill="#760423",stroke="#f3f3f3")
show(r25,c26,r26,c27,r27,c28)

#layer 20
p1 = point(x=0, y=5)
p2 = point(x=23, y=0)
p3 = point(x=0, y=-5)
shape1 = polygon([p1, p3, p2,p1],fill="#d1bd28",stroke="none")|repeat(16, rotate(22.5))
shape2 = polygon([p1, p3, p2,p1],fill="#c3620c",stroke="none")|repeat(32, rotate(11.25))
c29 = circle(x=0,r=16,fill="#1b3801",stroke="#f3f3f3")
r29 = rectangle(x=0,y=0,w=21.3,h=21.3,fill="#760423",stroke="none")|repeat(16, rotate(22.5))
c30 = circle(x=0,r=12,fill="#76042",stroke="#f3f3f3")
show(shape2,shape1,c29,r29,c30)

#layer200- last center part
e18 = ellipse(x=0,y=0,w=5,h=20,fill="#d1bd28",stroke="none")|repeat(16, rotate(22.5))
show(e18)
r18 = rectangle(x=0,y=0,w=10,h=10,fill="#760423",stroke="none")| repeat(16, rotate(22.5))
show(r18)
c18 = circle(r=5,fill="#f3f3f3", stroke="none")
r20 = rectangle(x=0,y=0,w=3,h=3,fill="#1b3801",stroke="none")| repeat(16, rotate(22.5))
show(c18,r20)