Pookkalam by Mohammed Saif

Code

blackbrown = color(r=51,g=0,b=0)
maroon  = color(r=153, g=0, b=0)
darkred  = color(r=255, g=128, b=0)
lyellow = color(r=255, g=255, b=204)
purple = color(r=178, g=102, b=255)
lorange = color(r=255, g=204, b=153)


r=rectangle(h=300, w=300, fill="white", stroke="none")

c=circle(r=155, fill="green",stroke="none")
c1=circle(r=150, fill=blackbrown, stroke="none")


shape1 = rectangle(w=210, h=210, fill=maroon, stroke="none") | repeat(9, rotate(10))
shape2 = rectangle(w=195, h=195, fill=darkred, stroke="none")|rotate(5) | repeat(9, rotate(10))
shape3 = rectangle(w=180, h=180, fill="yellow", stroke="none") | repeat(9, rotate(10))
shape4 = rectangle(w=165, h=165, fill=lyellow, stroke="none")|rotate(5) | repeat(9, rotate(10))

c2 = circle(r=105, fill="green", stroke="none")
c3 = circle(r=100, fill=lyellow, stroke="none")

s1=ellipse(w=195,h=10,fill=blackbrown,stroke="none") | repeat(36,rotate(5))

r1 = rectangle(h=100, w=100, stroke=lorange, stroke_width=2) | repeat(10,rotate(10))

c4=circle(x=71, y=0, r=5, fill="#000066", stroke="none") | repeat(36, rotate(10))
#r2 = rectangle(w=68, h=68, fill="yellow") | repeat(60, rotate(5)|scale(0.92))
c5=circle(r=50, fill=lorange, stroke="none")

s2=ellipse(w=100,h=10,fill="#000066",stroke="none") | repeat(36,rotate(5))
c7=circle(x=38, y=0, r=5 ,stroke="orange") | repeat(36, rotate(10))
c6=circle(r=25, fill=lyellow, stroke="none")

t1 = rectangle(x=-4.5,y=5.5,h=10,w=8,fill="#003366",stroke="white")
t2 = rectangle(x=-15.5,y=5.5,h=10,w=8,fill="#32CD32",stroke="white")
t3 = rectangle(x=-28,y=5.5,h=10,w=12,fill="red",stroke="white")
t4 = rectangle(x=-17.5,y=17.5,h=10,w=34,fill="#FFD70D",stroke="white")
t5 = rectangle(x=-5.5,y=29.5,h=10,w=10,fill="blue",stroke="white")
t6 = rectangle(x=-23,y=29.5,h=10,w=21,fill="#05C3DD",stroke="white")
t=combine([t1,t2,t3,t4,t5,t6]) | translate(x=17, y=-17)

show(r,c1,shape1,shape2,shape3,shape4,c2,c3,s1,r1,c4,c5,s2,c6,t,c7)