Pookkalam by Archa

Code

s1 = rectangle(w=200,h=200)
s2 =  rectangle(w=200,h=200,fill="yellow")| rotate(10)
s3 = rectangle(w=200,h=200,fill="red") | rotate(20)
s4 = rectangle(w=200,h=200,fill="green") | rotate(30)
s5 = rectangle(w=200,h=200,fill="purple") | rotate(40)
s6 = rectangle(w=200,h=200,fill="yellow") | rotate(50)
s7 = rectangle(w=200,h=200,fill="red")| rotate(60)
s8 = rectangle(w=200,h=200,fill="green")| rotate(70)
s9 = rectangle(w=200,h=200,fill="purple")| rotate(80)
s10 = rectangle(w=200,h=200,fill="orange")| rotate(90)
show(s1, s2, s3, s4,s5,s6,s7,s8,s9,s10)
shape = circle(x=50, y=0, r=50,stroke_width=3,) | repeat(6, rotate(60))
show(shape)
e1= ellipse()
shape = circle(x=140,y=0,r=10,stroke_width=5,stroke="red",fill="Orange")  | repeat(36,rotate(10))
show(shape)
c1=circle(r=100,fill="green")
show(c1)
fill_red = color(r=255, g=0, b=0, a=0.5)
fill_green = color(r=0, g=255, b=0, a=0.5)
c2=circle(r=10,fill="yellow")
c3= circle(r=50,fill="brown")
c4=circle(r=40,fill="red")
c5=circle(r=30,fill="red")

shapes= c3+c4+c5
show(shapes)

r = rectangle(w=60,h=160)
a3 = rectangle(w=60,h=160,fill="red") | rotate(20)
a4 = rectangle(w=60,h=160,fill="green") | rotate(30)
a5 = rectangle(w=60,h=160,fill="purple") | rotate(40)
a6 = rectangle(w=60,h=160,fill="yellow") | rotate(50)
a7 = rectangle(w=60,h=160,fill="red")| rotate(60)
a8 = rectangle(w=60,h=160,fill="green")| rotate(70)
a9 = rectangle(w=60,h=160,fill="purple")| rotate(80)
a10 = rectangle(w=60,h=160,fill="orange")| rotate(90)
a11= rectangle(w=200,h=200,fill="yellow")| rotate(100)
a12 = rectangle(w=60,h=160,fill="red") | rotate(110)
a13= rectangle(w=60,h=160,fill="green") | rotate(120)
a14= rectangle(w=60,h=160,fill="purple") | rotate(130)
a15= rectangle(w=60,h=160,fill="yellow") | rotate(140)
a16= rectangle(w=60,h=160,fill="red")| rotate(150)
a17= rectangle(w=60,h=160,fill="green")| rotate(160)
a18= rectangle(w=60,h=160,fill="purple")| rotate(170)
a19 = rectangle(w=60,h=160,fill="orange")| rotate(180)
show(r,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19)
r2= rectangle(w=50,h=50,fill="green")|repeat(12,rotate(30))
r3= rectangle(w=25,h=25,fill="yellow")|repeat(5,rotate(60))
c16= circle(r=12.5,fill="brown")
r4= rectangle(w=12.5,h=12.5,fill="orange")|repeat(5,rotate(60))

r6= rectangle(w=50,h=50,fill="red")|repeat(12,rotate(30))
r7= rectangle(w=25,h=25,fill="pink")|repeat(5,rotate(60))
c8= circle(r=12.5,fill="brown")
r8= rectangle(w=12.5,h=12.5,fill="orange")|repeat(5,rotate(60))
c9=circle(r=6.25,fill="red")
c15=circle(r=3,fill="red")


shapes= r+c16+r2+r3+c8+r4+c15+c9+r7+r6
show(shapes)
r1 = rectangle(fill="green", l=50, w=30) | repeat(6, rotate(60)) 
r1 += circle(fill="orange", r =30)
c1 = circle(fill="purple", r= 100) + circle(fill="red", r= 80)
shapes= c1 + r1
show(shapes)