Pookkalam by Sinu V

Code

petalcent = circle(r=20,fill="#f8c2cb")
petal1 = ellipse(y=60,w=20,h=100,stroke="#771727",stroke_width = 1,fill="#dc2543")
petal2 = ellipse(y=50,w=20,h=70,stroke="#8e1b2e",stroke_width = 1,fill="#ffffff")
petal3 = ellipse(y=30,w=20,h=50,stroke="#ad2139",stroke_width = 1,fill="#e52747")
petal4 = ellipse(y=20,w=20,h=30,stroke="#ad2139",stroke_width = 1,fill="#ffffff")
petals = (petal1+petal2+petal3+petal4 | repeat(10,rotate(36)))
   
flower =(petalcent+petals) | scale(0.25)
flower_ring = flower | translate(x=30,y=30) | repeat(50,rotate(161))
flowerbed = flower

num_layers = 5

for i in range(num_layers):
    flowerbed =  (flower_ring | scale(2**i) | rotate(30 * i%2)) +flowerbed

show(rectangle(x=0,y=0,h=300,w=300,fill="#dc2543"),flowerbed | scale(2**(2-num_layers)))