Pookkalam by Naurin Fathima

Code

#colours
a = "#800000"
b = "#FF8C00"
c = "#FFD700"
d = "#FFFF00"
e = "#FFFFE0"
f = "#87CEEB"
g = "#FF6347"
g1= "#FFE4E1"
g2= "#DC143C"
h=color(r=170, g=147, b=214, a=0.65)



#defined shapes
def outer_layer(clr,n):
    outer_end=rectangle(x=0, y=0, h=212, w=212, fill=clr, stroke="none") | scale(n)
    show(outer_end | repeat (3, rotate(30)))
    
def outer_arrow(arrow,n):
    show(arrow | repeat (12, rotate(30)) | scale(n))

def inner_circle(clr,n,y):
    outer_flower= circle(r=18.5, x=70, fill=clr, stroke_width=1.1) | repeat (12, rotate(30)) | scale(n)
    show(outer_flower)
    
#outer layer,background
show(circle(r=150, fill="#2980b9", stroke="none"))
colors = [a,b,c,d,e,f]
n=1
for i in colors:
    outer_layer(i,n)
    n=n-0.06
    #outer arrow


e3=ellipse(w=135,h=15,fill="yellow")|repeat(15,rotate(15))
e3=ellipse(w=135,h=15,fill="yellow")|repeat(15,rotate(15))
e4=ellipse(w=135,h=15,fill="#fc8c03")|repeat(15,rotate(30))
c7=circle(r=56,fill="#fc035a") 
e5=ellipse(w=70,h=30,fill="#ad1a72",stroke="#ad1a72")|repeat(8,rotate(45))
e6=ellipse(w=60,h=20,fill="#e34deb",stroke="#e34deb")|repeat(8,rotate(45))
e7=ellipse(w=40,h=10,fill="white",stroke="white")|repeat(8,rotate(45))
c8=circle(r=5,fill="red",stroke="red")
l=line(x1=2,y1=5,x2=4.5,y2=12,stroke="#e34deb")|repeat(8,rotate(30))
c=circle(r=3,x=115,y=0,fill="white",stroke="white")|repeat(20,rotate(20))
show(c,e3,e4,e4,e5,e6,e7,c8,l)