Pookkalam by Robin rajan

Code

## Derived colours
grey = color(r=110,g=1,b=0, a=0.2)
outer_tint = color(r=254,g=70,b=0, a=0.4)





#centre piece

pistil = circle(r=5, fill="yellow" , stroke="black" , stroke_width=2)
inner_petals = ellipse(w=80, h=10, fill="blue") | (repeat(6, rotate(30))) | scale (0.7)
inner_backdrop_01 = circle(r=30, fill="yellow")
inner_backdrop_02 = circle(r=40, fill="green") 

# Middle Layer - 1
m1_sublayer01 = rectangle(w=85, h=85, fill="orange") | repeat(25, rotate(60))
m1_sublayer02 = ellipse(w=150, h=95, fill="red", stroke_width=2) | repeat(40, rotate(30))

# Middle Layer - 2
m2_sublayer01 = rectangle(w=175, h=175, fill="yellow") | repeat(5, rotate(30))
m2_sublayer02 = rectangle(h=200, w=200, fill="grey") | repeat(25, rotate(30))

# Outer Layer
outer_sublayer01 = rectangle(w=209, h=209, fill=outer_tint) | repeat(30, rotate(30))
outer_sublayer02 = ellipse(w=300, h=100, fill="red") | repeat(50, rotate(10))
#show

show(outer_sublayer02,outer_sublayer01,m2_sublayer02,m2_sublayer01,m1_sublayer02,m1_sublayer01,inner_backdrop_01,inner_petals,pistil)