Pookkalam by Adithya Shaji E

Code

#Logo Function
def tinkerhub_logo():
    r1 = rectangle(w=110, h=60, fill='pink', stroke='black', 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='gold', stroke='blue', 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)




#inner layer
c1 = circle(r=13,fill="white",stroke="#3a1899",stroke_width=3 )
logo = tinkerhub_logo()
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)
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)

#outer layer
rect1=rectangle(w=160,h=160,fill="red",stroke="black")|repeat(20,rotate(60))
rect2=rectangle(w=180,h=180,fill="green",stroke="#blue")|rotate(10)|repeat(20,rotate(50))
rect3=rectangle(w=200,h=200,fill="yellow",stroke="blue")|repeat(10,rotate(50))



#output
show(rect3,rect2,rect1,mid_circle,sq2,sq,inner_layer,inner_petals,c1,logo)