Pookkalam by Sreekrishna A

Code

r=rectangle(h=300,w=300,fill='white')
show(r)
c= circle(r=150,fill='violet',stroke='darkred')
show(c)

r1=rectangle(w=165,h=165,fill="brown",stroke="none")|repeat(20,rotate(50))
r2=rectangle(w=180,h=180,fill="red",stroke="none")|rotate(15)|repeat(20,rotate(50))
r3=rectangle(w=200,h=200,fill="darkorange",stroke="none")|repeat(20,rotate(50))
r4=rectangle(w=217,h=217,fill="gold",stroke="none")|rotate(15)|repeat(20,rotate(50))|scale(0.98)
show(r4,r3,r2,r1)

c1 = circle(r=100,fill='brown',stroke='none')
show(c1)
r5=rectangle(w=160,h=160,fill='palegoldenrod',stroke='yellow')
r6=r5|repeat(20,rotate(30))
show(r6)
c2=circle(r=98,fill='violet',stroke='red',stroke_width='1')
show(c2)

c1 = circle(x=50,r=50,fill="darkred",stroke="none")|repeat(6,rotate(60))
c2 = circle(x=48,r=48,fill="red",stroke="none")|repeat(6,rotate(60))
c3 = circle(x=46,r=46,fill="lightsalmon",stroke="none")|repeat(6,rotate(60))
c4 = circle(x=44,r=44,fill="deeppink",stroke="none")|repeat(6,rotate(60))
c5 = circle(x=42,r=42,fill="palevioletred",stroke="none")|repeat(6,rotate(60))
c6 = circle(x=40,r=40,fill="peachpuff",stroke="none")|repeat(6,rotate(60))
c7 = circle(x=38,r=38,fill="teal",stroke="none")|repeat(6,rotate(60))
c =combine([c1,c2,c3,c4,c5,c6,c7])
show(c)

e=ellipse(w=50,h=100/3,fill="red", stroke="brown", x=-50) | repeat(10, rotate(36))
show(e)
c=circle(x=60,y=0,r=8,fill="yellow", stroke="none")| repeat(10, rotate(36))
show(c)

c1=ellipse(h=100,w=5,fill="peachpuff")|repeat(50,rotate(15))
c2=ellipse(h=30,w=10,fill="olive")|repeat(50,rotate(15))
c3=circle(r=15,fill="white")
show(c1, c2, c3)
r8 = rectangle (w=15,h=15,fill="pink", stroke="darkgreen")|rotate(0) | repeat (15,rotate(50))
show(r8)
c4=circle(r=7,fill="yellow")
show(c4)