Pookkalam by Pooja Remesh

Code

def rep_rec():
    s = rectangle(x=50,y=50,w = 100, h = 100,fill = "#EA3222",stroke = "none") + circle(x=100,y=100,r=5,fill = "#ffdb49",stroke = "none")+circle(x=100,y=100,r=2,fill = "#EA3222",stroke = "none")
    r = s | repeat(36, rotate(10))
    show(r)
    c = circle(r=125,fill = "#AD1764", stroke = "none")
    show(c)
    
    f1 = ellipse(x=60,y=0,w=120,h=25,fill = "#972402", stroke = "#ffdb49",stroke_width = 1) + circle(x=120,y=0,r=3,fill = "#ffdb49",stroke = "#EA3222")
    flower_1 = f1 | repeat(36,rotate(10))
    f2 = ellipse(x=60,y=0,w=100,h=15,fill = "#fd6002", stroke = "none")
    flower_2 = f2 | repeat(36,rotate(10))
    f3 = ellipse(x=60,y=0,w=50,h=5,fill = "#4C0704", stroke = "none",) + circle(x=35,y=0,r=2,fill = "#ffdb49",stroke = "#EA3222")
    flower_3 = f3 | repeat(36,rotate(10))
    show(flower_1,flower_2,flower_3)
    
    r1 = rectangle(w=40,h=40,fill = "#AD1764")
    rec1= r1 | repeat(6,rotate(30))
    r2 = rectangle(w=30,h=30,fill = "#FA2062")
    rec2= r2 | repeat(6,rotate(30))
    r3 = rectangle(w=20,h=20,fill = "#FF0726")
    rec3= r3 | repeat(6,rotate(30))
    r4 = rectangle(w=10,h=10,fill = "#E41D35")
    rec4= r4 | repeat(6,rotate(30))
    r5 = rectangle(w=5,h=5,fill = "#CA4858")
    rec5= r5 | repeat(6,rotate(30))
    
    show(rec1,rec2,rec3,rec4,rec5)

bg = circle(r=150,fill = "black")
show(bg)
pookkalam = rep_rec()
show(pookkalam)