Pookkalam by Ajay

Code

def triangle(fill="#FF4500", stroke="black", x=0,y=0):

    return polygon([point(x=0,y=0),point(x=50,y=50),point(x=50,y=-50)],fill=fill,stroke=stroke)| translate(x=x,y=y)

c1 = circle(r=100,fill="yellow")

c3= circle(r=110,fill="#DC143C",stroke="#DC143C",stroke_width=5)

small_circle = circle(r=7,fill="green") | translate(x=122) | repeat(18, rotate(30))

c4 = circle(x=50, y=0, r=35,fill="purple")

c5= circle(x=-50, y=0, r=35,fill="purple")

c6= circle(x=0, y=-50, r=35,fill="purple")

c7 = circle(x=0, y=50, r=35,fill="purple")

c8 = circle(x=50, y=0, r=20,fill="#FFD700")

c9= circle(x=-50, y=0, r=20,fill="#FFD700")

c10= circle(x=0, y=-50, r=20,fill="#FFD700")

c11 = circle(x=0, y=50, r=20,fill="#FFD700")

c12=circle (r=15,fill="#DC143C")

e1 = ellipse(w=50,h=130, fill="red",stroke='red')|repeat(30,rotate(30))

e2 = ellipse(w=30,h=80, fill="yellow",stroke='yellow')|repeat(15,rotate(30))

e3 = ellipse(w=10,h=60, fill="red",stroke='red')|repeat(15,rotate(30))

t1 = triangle() | scale(0.6)| translate(x=60) | rotate(45) | repeat(4, rotate(90))

c13=circle (r=15,fill="yellow")

c14=circle (r=8,fill="red")

c15=circle (r=4,fill="yellow")

r1=rectangle(w=160,h=160,fill="#820a0a",stroke="#a30e0e")|repeat(20,rotate(50))

r2=rectangle(w=180,h=180,fill="#ce0606",stroke="#e81919")|rotate(15)|repeat(20,rotate(50))

r3=rectangle(w=200,h=200,fill="#fc9802",stroke="#fc9802")|repeat(20,rotate(50))

r4=rectangle(w=220,h=220,fill="#fceb02",stroke="#fcfc05")|rotate(15)|repeat(20,rotate(50))|scale(0.98)

show(r4,r3,r2,r1,c3,c1,c4,c5,c6,c7,c8,c9,c10,c11,c12,e1,e2,e3,c13,c14,c15,t1)