Pookkalam by Mohamed fasil

Code

c1 = circle(x=0, y=0, r=150,fill="#4A1C40", stroke="none")

r1 = rectangle(w=210 ,h=210,fill="rgba(189,22,22, 0.5)",stroke="none") | repeat(24, rotate(15))
r1 = r1 | rotate (45)
r2 = rectangle(w=187, h=187, fill="rgba(252,84,4, 0.5)",stroke="none") | repeat(24, rotate(15))
r2 = r2 | rotate (7)
r3 = rectangle(w=167, h=167, fill="rgba(249,178,8,0.5)",stroke="none") | repeat(24, rotate(15))
r3 = r3 | rotate (45)
r4 = rectangle(w=147, h=147, fill="white",stroke="none") | repeat(24, rotate(15))
r4 = r4 | rotate (7)
show(c1,r1,r2,r3,r4)

lin1=point(x=0, y=-20)
lin2=point(x=-150, y=0)
lin3=point(x=0, y=20)
triangle=polygon([lin1,lin2,lin3], fill="rgba(249,178,8,1)", stroke="none")
triangle= triangle | repeat(12, rotate(30))
show(triangle)

cir1=circle(r=25, fill="#F6D167", stroke="none")
cir2=circle(r=25, fill="#007944", stroke="none")
l1=point(x=-25,y=0)
l2=point(x=-25,y=25)
l3=point(x=0,y=25)
s1=polygon([l1,l2,l3], fill="#F6D167", stroke="none")
s2=polygon([l1,l2,l3], fill="#007944", stroke="none")
shape1=cir1+s1
shape2=cir2+s2

shape1 =shape1 | translate(x=-60, y=60) | repeat(12, rotate(30))
shape2 =shape2 | translate(x=-60, y=60) | repeat(12, rotate(30))
shape2= shape2 | scale(0.97)
show(shape1, shape2)

c3= circle(r=95, fill="rgba(74,28,64, 0.8)", stroke="none")
rec4=rectangle(w=130, h=130, stroke_width="1.5", stroke="rgba(249,178,8,0.8)") | repeat(24, rotate(15) | scale(0.99))
show(c3, rec4)

e=ellipse(w=100, h=170, fill="rgba(189,22,22, 0.9)",
         stroke_width="2", stroke="rgba(249,178,8,0.4)") | repeat(30, rotate(45) | scale(0.975))

show(e)

rec1=rectangle(x=25,y=25, w=50, h=50 , fill="rgb(255,140,0)", stroke="none")
rec2=rectangle(x=25,y=25, w=50, h=50 , fill="#F3F2C9", stroke="none") | rotate(-45)
for x in range(8):
    if x%2==0:
        show(rec1)
        rec1= rec1 | rotate(-90)
    else:
        show(rec2)
        rec2=rec2 | rotate(-90)
ln1=point(x=50, y=50)
ln2=point(x=0, y=50)
ln3=point(x=0, y=0)
s= polygon([ln1,ln2,ln3], fill="rgb(255,140,0)", stroke="none")
show(s)

cir3=circle(x=-125, y=34, r=4, fill="rgba(255,140,0,0.6)", stroke="none") | repeat(12,rotate(30))

show(cir3)