Pookkalam by Abirami Gopikrishnan

Code

#outter ring
c1= circle(r=125, fill="#000C66", stroke="none")
c2= circle(r=120, fill="#990033", stroke="none")
c6= circle(r=115, fill="#FF9000", stroke="none")
c7= circle(r=110, fill="#CE6C47", stroke="none")
c8= circle(r=105, fill="#FFD046", stroke="none")
c9= circle(r=100, fill="yellow", stroke="none")
show(c1,c2,c6,c7,c8,c9)

#outter polygon
op1= point(0,0)
op2= point(90,-24.11)
op3= point(120,0)
op4= point(90,24.11)
oshape = polygon([op1,op2,op3,op4], fill="#AA4465", stroke="yellow", stroke_width=2, a=0.5)
oshape1 = polygon([op1,op2,op3,op4],fill="#0000A3", stroke="yellow", stroke_width=2)
os= oshape | repeat(6, rotate(60))
os1= oshape1 | rotate(30)
os2= os1 | repeat(6,rotate(60))
show(os,os2)

#outtercircles
outter_circle1 = circle(x=100,y=0,r=10,fill="#1F1A38",stroke="none")
oc1= outter_circle1 | repeat(6,rotate(60))
outter_circle2 = circle(x=100,y=0,r=7,fill="#7B506F",stroke="none")
oc2= outter_circle2 | repeat(6,rotate(60))
outter_circle3 = circle(x=100,y=0,r=4,fill="#DD99BB",stroke="none")
oc3= outter_circle3 | repeat(6,rotate(60))
show(oc1,oc2,oc3)

outter_circle4 = circle(x=0,y=100,r=10,fill="#70ABAF",stroke="none")
oc4= outter_circle4 | repeat(6,rotate(60))
outter_circle5 = circle(x=0,y=100,r=7,fill="#F0F7F4",stroke="none")
oc5= outter_circle5 | repeat(6,rotate(60))
outter_circle6 = circle(x=0,y=100,r=4,fill="#99E1D9",stroke="none")
oc6= outter_circle6 | repeat(6,rotate(60))
show(oc4,oc5,oc6)

#innercircles
def cir(x,y,r,fill):
    shape2 = circle(x=x,y=y,r=r, fill=fill, stroke="none")
    c6 = shape2 | repeat(16,rotate(22.5))
    show(c6)
cir(x=50 ,y=0 ,r=30 ,fill="#330000")
cir(x=50 ,y=0 ,r=25 ,fill="#990000")
cir(x=50 ,y=0 ,r=20 ,fill="#ED1717")
cir(x=50 ,y=0 ,r=15 ,fill="#F24D11")
cir(x=50 ,y=0 ,r=10 ,fill="#F6830C")
cir(x=50 ,y=0 ,r=5 ,fill="#FBB806")
cir(x=50 ,y=0 ,r=2 ,fill="#FFEE00")

#blue ring
c3= circle(r=45 , fill="#004197", stroke="none")
show(c3)
c4= circle(r=35 , fill="#DF265E", stroke="none")
show(c4)
c5 = circle(x=40, y=0, r=2 , fill="#f7d709", stroke="none")
round_circle=c5| repeat(40,rotate(10))
show(round_circle)

#inner polygons
p1= point(0,0)
p2= point(25,-6.69)
p3= point(35,0)
p4= point(25,6.69)
shape = polygon([p1,p2,p3,p4],fill="#f7d709", stroke="none")
s= shape | repeat(6, rotate(60))
shape1 = polygon([p1,p2,p3,p4],fill="#0000A3", stroke="none")
s1= shape1 | rotate(30)
s2= s1 | repeat(6,rotate(60))
show(s,s2)

#inner circle
c0 = circle(r=7, fill="#f7d709", stroke="none")
show(c0)