Pookkalam by Safoora azhar

Code

def petal(side,color):
    return rectangle(w=side,h=side,fill=color,stroke="none")
 
def triangle(point1,point2,point3,color) :
    return polygon([point1,point2,point3],fill=color,stroke='none')

# first layer
firstCircle = circle(r=145,fill="#4c0121",stroke="none")
show(firstCircle)
white=petal(side=203,color="white")|repeat(10,rotate(10))
show(white)
yellow=petal(side=189,color="#fff017")|rotate(5)|repeat(10,rotate(10))
show(yellow)
amber=petal(side=175,color="#fdc300")|rotate(10)|repeat(10,rotate(10))
show(amber)
orange=petal(side=160,color="#f96209")|rotate(15)|repeat(10,rotate(10))
show(orange)
red=petal(side=150,color="#e12120")|rotate(10)|repeat(10,rotate(10))
show(red)
maroon=petal(side=140,color="#680c07")|rotate(15)|repeat(10,rotate(10))
show(maroon)

#second circle
secondCircle = circle(r=90,fill="#002800",stroke="none")
show(secondCircle)
white1 = petal(side=130,color="white")|rotate(30)|repeat(3,rotate(30))
show(white1)
pink=petal(side=118,color="#fd5da8")|rotate(30)|repeat(3,rotate(30))
show(pink)
pink1=petal(side=106,color="#e0115f")|rotate(30)|repeat(3,rotate(30))
show(pink1)
pink2 = petal(side=94,color="#e12120")|rotate(30)|repeat(3,rotate(30))
show(pink2)
violet=petal(side=82,color="#680c07")|rotate(30)|repeat(3,rotate(30))
show(violet)
point1 = point(x=0,y=85)
point2 = point(x=12,y=0)
point3 = point(x=-12,y=0)
t = triangle(point1,point2,point3,'#f96209') | repeat(12,rotate(30))
show(t)

#third circle
thirdCircle = circle(r=50,fill="#002800",stroke="none")
show(thirdCircle)
flower=ellipse(w=25,h=31,x=1,y=33,fill="#fff017" ,stroke="#fff017") | repeat(12,rotate(30))
show(flower)
flower1=ellipse(w=23,h=24,x=1,y=33,fill="#f96209" ,stroke="#f96209") | repeat(12,rotate(30))
show(flower1)
flower2=ellipse(w=20,h=16,x=1,y=33,fill="#e12120" ,stroke="#e12120") | repeat(12,rotate(30))
show(flower2)
fourthCircle = circle(r=35,fill="#fff017",stroke="none")
show(fourthCircle)
fifthCircle = circle(r=32,fill="#f96209",stroke="none")
show(fifthCircle)
sixthCircle = circle(r=28,fill="#e12120",stroke="none")
show(sixthCircle)
flower3=ellipse(w=11,h=17,x=1,y=15,fill="#fdc300" ,stroke="black") | repeat(12,rotate(30))
show(flower3)
flower4=ellipse(w=6,h=8,x=1,y=15,fill="#680c07" ,stroke="black") | repeat(12,rotate(30))
show(flower4)

#inner circle
innerCircle = circle(r=14,fill="#e12120",stroke="none")
show(innerCircle)
innerCircle1 = circle(r=11,fill="#f96209",stroke="none")
show(innerCircle1)
innerCircle2= circle(r=9,fill="#fdc300",stroke="none")
show(innerCircle2)
innerCircle3 = circle(r=6,fill="#fff017",stroke="none")
show(innerCircle3)
innerCircle4 = circle(r=5,fill="#4c0121",stroke="none")
show(innerCircle4)