Pookkalam by Fathima Razak

Code

def square(a=100, fill="none", stroke="black",stroke_width=1):

    return rectangle(w=a,h=a,stroke=stroke,fill=fill,stroke_width=stroke_width)

back = square(a=300, fill="black")

s1 = square(a=100,fill="blue", stroke="none")

s2 = square(a=75,fill="cyan", stroke="none")

s3 = s1 + s2 | rotate(45) | scale(y=0.5) | scale(0.5)

s3 = s3 | repeat(2,translate(x=100)) | repeat(10, rotate(36))

s4 = s3 | rotate(45/2)

s5 = square(a=25, stroke="yellow") | repeat(10, rotate(36))

l1 = line(x1=0,y1=0,x2=100,y2=0,stroke="blue", stroke_width=5) | repeat(10, rotate(36))

c1 = circle(fill="Gold",stroke="Navy", stroke_width=10)

c2 = circle(r=12.5,fill="fireBrick", stroke="none")

r1 = rectangle(x=50, w=50,h=15, fill="lightpink", stroke="none")| repeat(10,rotate(36))

r2 = rectangle(x=0, w=5, h=15, fill="lime", stroke="white") | repeat(11, translate(5)|scale(1.1))

r2 = r2 | repeat(10,rotate(36))

show(back,s4,c1,r2,r1,l1,s3,s5,c2)