Pookkalam by Shiyas Mohammed

Code

rec = rectangle(w=200,h=200,fill="yellow",stroke="none")
r1 = rec | repeat(20,rotate(20))
rec2 = rectangle(w=180,h=180,fill="orange",stroke="none")
r2 = rec2 | repeat(20,rotate(20))
c1 = circle(r=145,fill="red",stroke="none")
c2 = circle(r=115,fill="#e60000",stroke="none")
dot = circle(r=5,fill="yellow",stroke="none")
d1 = dot | translate(x=100,y=0)
dr = d1 | repeat(20,rotate(20))
color1 = color(r=255,g=255,b=0,a=0.5)
b = ellipse(w=110,h=50,fill=color1,stroke="none")
b1 = b | translate(x=35,y=0) 
b2 = b1 | repeat(20,rotate(18))
def abc(rad, off, fill, stroke, rotoff, count):
    c = circle(r=rad, x=-rad-off, y=rad+off, fill=fill, stroke=stroke) | rotate(rotoff) | repeat(count, rotate(360 / count))
    r = rectangle(h=rad, w=rad, x=-1.5*rad-off, y=1.5*rad+off, fill=fill, stroke=stroke) | rotate(rotoff) | repeat(count, rotate(360 / count))
    return c, r 
a1, a2 = abc(5, 0.1, '#f52565', '#f52565', 37.5, 5)
a3, a4 = abc(2, 0.1, '#fa3471', '#fa3471', 37.5, 5)
show(c1,r1,r2,c2,dr,b2,a1,a2,a3,a4)