Pookkalam by Athira P

Code

def pookkalam():
    r1 = rectangle(w=105, h=50, fill='#2CC0CF', stroke='none', x=-45, y=70) 
    r2 = rectangle(w=50, h=50, fill='#2078F9', stroke='none', x=50, y=70)
    layer1 = r1 + r2
    layer2 = rectangle(w=175, h=50, fill='#FECD3D', stroke='none', x=-12, y=0) 
    r1 = rectangle(w=70, h=50, fill='#EE3C35', stroke='none', x=-65, y=-70) 
    r2 = rectangle(w=42, h=50, fill='#91BF23', stroke='none', x=0, y=-70) 
    r3 = rectangle(w=42, h=50, fill='#045768', stroke='none', x=52, y=-70) 
    layer_three = r1 + r2 + r3
    return combine([layer1, layer2, layer_three]) | scale(0.08) | translate(x=1)

c1 = circle(r=13,fill="white",stroke="#3a1899",stroke_width=3 )
logo = pookkalam()
inner_petals=ellipse(w=80,h=10,fill="gold")|scale(0.9)|repeat(6,rotate(30))

inner_layer=ellipse(w=50,h=20,fill="#3b158e",stroke="none")|repeat(12,rotate(30))|scale(1.8)

med_circle=circle(r=100,fill="yellow")
sq=rectangle(w=100,h=100,fill="orange",stroke="none")|repeat(12,rotate(30))|scale(0.9)
el1=ellipse(h=160,w=65,fill='red',stroke='red')|repeat(15,rotate(45))|scale(0.96)
sq2=rectangle(w=105,h=90,fill="#fff205",stroke="none")|repeat(36,rotate(10))|scale(1.2)
mid_circle=circle(r=94,fill="#097004",stroke="white",stroke_width=6)

rect1=rectangle(w=160,h=160,fill="#820a0a",stroke="#a30e0e")|repeat(20,rotate(50))
rect2=rectangle(w=180,h=180,fill="#ce0606",stroke="#e81919")|rotate(15)|repeat(20,rotate(50))
rect3=rectangle(w=200,h=200,fill="#fc9802",stroke="#fc9802")|repeat(20,rotate(50))
rect4=rectangle(w=220,h=220,fill="#fceb02",stroke="#fcfc05")|rotate(15)|repeat(20,rotate(50))|scale(0.98)

show(rect4,rect3,rect2,rect1,mid_circle,sq2,el1,sq,inner_layer,inner_petals,c1,logo)