Pookkalam by Dini Anilkumar

Code

c0 = circle(r=150,fill="#3A6351",stroke="#3A6351")
c1 = circle(r=146,fill="#99154E",stroke="none")
c2 = circle(r=142,fill="#d42272",stroke="none", stroke_width="8")
c6 = circle(r=75,fill="#FFF8D9")
c5 = circle(r=50,fill="#F9F871",stroke="#F9F871")
show(c0,c1,c2,c6,c5)

#circle_7
#7_layer_3
p1 = point(x=90 ,y=0)
p2 = point(x=115 ,y=0)
p3 = point(x=110 ,y=-20)
p4 = point(x=135 ,y=-24)

p5 = point(x=90 ,y=0)
p6 = point(x=115 ,y=0)
p7 = point(x=110 ,y=20)
p8 = point(x=135 ,y=24)
s_72 = polygon([p5,p6,p8,p7],fill="#FF4C29",stroke="#FF4C29",stroke_width="5") + polygon([p1,p2,p4,p3],fill="#FFF338",stroke="#FFF338",stroke_width="5")|repeat(16,rotate(22.5))

show(s_72)
#7_layer_2
p1 = point(x=90 ,y=0)
p2 = point(x=77 ,y=0)
p3 = point(x=110 ,y=-22)
p4 = point(x=92 ,y=-22)

p5 = point(x=90 ,y=0)
p6 = point(x=77 ,y=0)
p7 = point(x=110 ,y=22)
p8 = point(x=92 ,y=22)
s_71 = polygon([p6,p5,p7,p8],fill="#5C527F",stroke="none") + polygon([p2,p1,p3,p4],fill="#7B113A",stroke="none")|repeat(16,rotate(22.5))

show(s_71)
#7_layer_1
p1 = point(x=59 ,y=0)
p2 = point(x=75 ,y=0)
p3 = point(x=69 ,y=-15)
p4 = point(x=85 ,y=-15)

p5 = point(x=59 ,y=0)
p6 = point(x=75 ,y=0)
p7 = point(x=69 ,y=15)
p8 = point(x=85 ,y=15)
s_7 = polygon([p5,p6,p8,p7],fill="#FF4C29",stroke="#FF4C29",stroke_width="5") + polygon([p1,p2,p4,p3],fill="#FFF338",stroke="#FFF338",stroke_width="5")|repeat(16,rotate(22.5))

show(s_7)

#circle_6
s_6 = ellipse(x=52, y=0, w=5,h=10,fill="#72147E",stroke="none") | repeat(58, rotate(10))
s_61 = ellipse(x=56, y=0, w=5,h=10,fill="#72147E",stroke="none") | repeat(56, rotate(10))
show(s_6,s_61)


#circle_5

p1=point(x=50,y=0)
p2=point(x= 30,y=12)
p3=point(x=30,y=-12)
p4=point(x=12,y=30)
p5=point(x=-12,y=30)
p6=point(x=0,y=50)
s_5 = polygon([p1,p2,p3],fill="#5C527F",stroke="none")|repeat(7,rotate(60))
s_6 = polygon([p4,p5,p6],fill="#7B113A",stroke="none")|repeat(6,rotate(60))
show(s_5,s_6)

#circle_3
c3 = circle(r=30,fill="#5D8233",stroke="#5D8233",stroke_width="3")
show(c3)
p1 = point(x=30, y=0)
p3 = point(x=0, y=0)
p2 = point(x=15, y=15)
p4 = point(x=15, y=-15)
p5 = point(x=20, y=0)
p6 = point(x=0 , y=20)
p7 = point(x=20,y=22)
p8 = point(x=12 ,y=22)
p9 = point(x=18,y=16)
shape_3 = polygon([p1, p2, p3,p4],fill = "#FC5404",stroke="#FC5404",stroke_width=3)
shape_30 = polygon([p3, p5, p7,p6],fill = "#FFF8D9",stroke="#FFF8D9",stroke_width=3)
show(shape_3)
show(shape_30)
shape_31 = shape_3|rotate(90)
show(shape_31)
shape_32 = shape_30|rotate(90)
show(shape_32)
shape_33 = shape_31|rotate(90)
show(shape_33)
shape_34 = shape_32|rotate(90)
show(shape_34)
shape_35 = shape_33|rotate(90)
show(shape_35)
shape_36 = polygon([p3,p5,p7,p8,p9],fill = "#FFF8D9",stroke="#FFF8D9",stroke_width="3")|rotate(270)
show(shape_36)

#circle_4
s_4 = circle(x=5,y=0,r=5,fill="#AE00FB")|repeat(6, rotate(60))
s_40 = circle(r=3,fill="#C400FF")
show(s_4,s_40)