Pookkalam by SHAMNA K

Code

#outermost_layer
outer_circle_1 = circle(r=149,fill="#1b261a")
outer_circle_2 = circle(r=144,fill="#5d6d27", stroke="none")
outer_circle_3 = circle(r=139,fill="#b6900b", stroke= "none")

#outer_layer
outer_rectangle_1 = rectangle(w=200,h=200, fill="#b9bfbf",stroke="none")|repeat(10, rotate(10))
outer_rectangle_2 = rectangle (w=200,h=200,fill="#ceb12c", stroke="none")| rotate(5) | repeat(10, rotate(10))
outer_rectangle_3 = rectangle(w=187,h=187, fill="#a98003",stroke="none") | rotate(10) | repeat(10, rotate(10))
outer_rectangle_4 = rectangle(w=187,h=187,fill="#c64500",stroke="none")| rotate(15) | repeat(10, rotate(10))
outer_rectangle_5 = rectangle(w=174,h=174,fill="#770904",stroke="none")| rotate(20) | repeat(10, rotate(10))
outer_rectangle_6 = rectangle(w=174,h=174,fill="#130d11",stroke="none")| rotate(25) | repeat(10, rotate(10))

#middle_round_layer
inner_circle_1 = circle(r=115,fill="#1b261a")
inner_circle_2 = circle(r=110,fill="#5d6d27", stroke="#5d6d27")
inner_circle_3 = circle(r=105,fill="#b6900b", stroke= "#b6900b")
inner_circle_4 = circle(r=100,fill="#c4b054",stroke="#c4b054")
c=combine([outer_circle_1, outer_circle_2, outer_circle_3, outer_rectangle_1, outer_rectangle_2,outer_rectangle_3, outer_rectangle_4, outer_rectangle_5,outer_rectangle_6,inner_circle_1, inner_circle_2, inner_circle_3, inner_circle_4])
show(c)

#middle_round_flower
flower = circle(x=0, y=0, r=50, fill="#b4a856")+ circle(x=0, y=0, r=45, fill="#7b71ad", stroke="#7b71ad")+circle(x=0, y=0, r=40, fill="#5d538a", stroke="#5d538a")+ circle(x=0, y=0, r=35, fill="#38216f", stroke="#38216f")+circle(x=0, y=0, r=30, fill="#211354", stroke="#211354")+ circle(x=0, y=0, r=25, fill="#0e0a0c", stroke="#0e0a0c")
flower_1 = flower  | translate(x=0, y=50)
flower_2 = flower  | translate(x=-50, y=0)
flower_3 = flower  | translate(x=0, y=-50)
flower_4 = flower  | translate(x=50, y=0)
flower_5 = flower  | translate(x=37, y=37)
flower_6 = flower  | translate(x=-37, y=-37)
flower_7 = flower  | translate(x=37, y=-37)
flower_8 = flower  | translate(x=-37, y=37)
show(flower_1, flower_2, flower_3, flower_4, flower_5, flower_6, flower_7, flower_8)

#middle_flower
petals = ellipse(h=200, w =20 , fill="#c1c6c4", stroke = "none")+ellipse(h=190, w =20 , fill="#b2aa4e", stroke = "none")+ellipse(h=180, w =20 , fill="#ad8400", stroke = "none")+ellipse(h=170, w =20 , fill="#b73e01", stroke = "none")+ellipse(h=160, w =20 , fill="#9e2315", stroke = "none")+ellipse(h=150, w =20 , fill="#831919", stroke = "none")+ellipse(h=140, w =20 , fill="#1e171a", stroke = "none")
petals_1 = petals | rotate(30)
petals_2 = petals | rotate(60)
petals_3 = petals | rotate(90)
petals_4 = petals | rotate(120)
petals_5 = petals | rotate(150)
petals_6 = petals | rotate(180)
show(petals_1, petals_2, petals_3, petals_4, petals_5, petals_6, flower )

#center_flower
petal = ellipse(h=50, w =10 , fill="#c1c6c4", stroke = "none")+ellipse(h=45, w =10 , fill="#b2aa4e", stroke = "none")+ellipse(h=40, w =10 , fill="#ad8400", stroke = "none")+ellipse(h=35, w =10 , fill="#b73e01", stroke = "none")+ellipse(h=30, w =10 , fill="#9e2315", stroke = "none")+ellipse(h=25, w =10 , fill="#831919", stroke = "none")+ellipse(h=20, w =10 , fill="#1e171a", stroke = "none")
petal_1 = petal | rotate(30)
petal_2 = petal | rotate(60)
petal_3 = petal | rotate(90)
petal_4 = petal | rotate(120)
petal_5 = petal | rotate(150)
petal_6 = petal | rotate(180)
show(petal_1, petal_2, petal_3, petal_4, petal_5, petal_6)

center_circle = circle( x= 0, y =0, r =5 , fill = "#2f1769" , stroke = "none")+ circle( x= 0, y =0, r =2 , fill = "#655592" , stroke = "none")
show(center_circle)