Pookkalam by Rohit T P

Code

bud = circle(r=20,fill="#FFFF99")
petal1 = ellipse(y=60,w=20,h=100,stroke="#00000",stroke_width = 2,fill="#FB5F00")
petal2 = ellipse(y=40,w=20,h=50,stroke="#00000",stroke_width = 1,fill="#2A7BF7")
petals = (petal1+petal2 | repeat(50,rotate(161)))

flower =(bud+petals) | scale(0.25)
flower_ring = flower | translate(x=30,y=30) | repeat(8,rotate(45))
flowerbed = flower

num_layers = int(random(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="#FFFF99"),flowerbed | scale(2**(2-num_layers)))