Pookkalam by Farzana

Code

bg = rectangle(w=300,h=300,fill='white')
show(bg)
c=circle(r=150,fill='black')
show(c)
for i in range(10):
        # shape1 = rectangle(w=180, h=180,fill='white',stroke='none')  | repeat(10, rotate(10))
        shape2 = rectangle(w=190, h=190,fill='#0EF291',stroke='none')  | repeat(10, rotate(10))
        shape3 = rectangle(w=200, h=200,fill='#21146F',stroke='none')  | repeat(10, rotate(10))
        shape4 = rectangle(w=210, h=210,fill='#E52A76')  | repeat(10, rotate(10))
show(shape4+shape3+shape2)

c = circle(r=130,fill='#125A21')
c1 = circle(r=125,fill='pink')
show(c+c1)

el = ellipse(w=250,h=100,fill='#800A6F') | repeat(6, rotate(30))
show(el)

for i in range(5):
    r1 = rectangle(w=140,h=140,fill='#F2FAB7')
    r2 = rectangle(w=150,h=150,fill='#E6FF33')
    r3 = rectangle(w=160,h=160,fill='#FF338A')
    r4 = rectangle(w=170,h=170,fill='green')
    r5 = rectangle(w=180,h=180,fill='red')
    

rec_copy =r5+ r4+r3+r2+r1 | repeat(5,rotate(40))
show(rec_copy+r5+r4+r3+r2+r1)
c1 = circle(r=40,fill="purple",stroke="orange")
c2 = circle(r=30,fill="yellow",stroke="yellow")
c3 = circle(r=15,fill="purple",stroke="green")
c4 =circle(r=10,fill="red",stroke="yellow")
c5 =circle(r=5,fill="red",stroke="red")
c6 =circle(r=3,fill="yellow",stroke="yellow")
c8 =ellipse(w=100,h=5,fill="maroon",stroke="maroon")|repeat(60,rotate(6))
c7 =ellipse(w=150,h=20,fill="red",stroke="red")|repeat(8,rotate(50))
c9 =ellipse(w=150,h=20,fill="orange",stroke="orange")|repeat(9,rotate(40))
c10 =ellipse(w=150,h=20,fill="#0C5218",stroke="green")|repeat(100,rotate(10))

show(c10,c9,c7,c8,c1,c2,c3,c4,c5,c6)


petals = ellipse(w=6,h=10,x=0,y=10, fill="#800A6F")
flower = petals|repeat(10,rotate(30))
flgd= flower|translate(x=8,y=8)|repeat(16,rotate(30))
e = flgd|translate(x=30,y=30)|repeat(12,rotate(60))
show(e)