Pookkalam by Syamili A S

Code

#create circle for fill the white color
c1 = circle(r=150, fill="#330303")+circle(r=125, fill="white")
c2 = circle(r=91, fill="white", stroke="white")+circle(r=50, fill="white", stroke="none")

#create the squares in the outer part
m1 = rectangle(x=97, y=97, w=14, h=14, fill="#c60b0f",stroke="none")+ rectangle(x=93, y=93, w=11, h=11, fill="#f46a1a", stroke="none")+rectangle(x=89, y=89, w=9, h=9, fill="#f4d716", stroke="none")|repeat(90,rotate(4))

#create the flower using ellipse
e1 = ellipse(w=240, h=50, fill="#0815a5", stroke="#9b0a0a", stroke_width="2") | repeat(20, rotate(10))

#create the 4 set of squares
r1 = rectangle(x=55, y=0, w=10, h=10, fill="#330303", stroke="none") | repeat(36, rotate(12))
r2 = rectangle(x=65, y=0, w=10, h=10, fill="#c60b0f", stroke="none") | repeat(45, rotate(10))
r3 = rectangle(x=75, y=0, w=10, h=10, fill="#f46a1a", stroke="none") | repeat(52, rotate(9))
r4 = rectangle(x=85, y=0, w=10, h=10, fill="#f4d716", stroke="none") | repeat(60, rotate(8))

#create the triangles
t1 = point(x=0, y=0)
t2 = point(x=34.5, y=0)
t3 = point(x=34.5, y=34.5)
t = polygon([t1, t2, t3],  fill="#0815a5", stroke="#9b0a0a")|repeat(40, rotate(10))

#create the centre triangles
ct1 = point(x=0, y=0)
ct2 = point(x=28, y=0)
ct3 = point(x=28, y=28)
ct = polygon([ct1, ct2, ct3],  fill="#0815a5", stroke="#9b0a0a", stroke_width=2)|repeat(15, rotate(30))

#show the shapes
show(c1, m1, e1, c2, r1, r2, r3, r4, t, ct )