Pookkalam by DEVIKA K

Code

c = circle(r=150, fill="black")
show(c)
rect1=rectangle(w=150,h=150,fill="#820a0a",stroke="none")|repeat(20,rotate(50))
rect2=rectangle(w=170,h=170,fill="#ce0606",stroke="none")|rotate(15)|repeat(20,rotate(50))
rect3=rectangle(w=190,h=190,fill="#fc9802",stroke="none")|repeat(20,rotate(50))
rect4=rectangle(w=210,h=210,fill="#fceb02",stroke="none")|rotate(15)|repeat(20,rotate(50))|scale(0.98)
show(rect4,rect3,rect2,rect1)
rect5=rectangle(w=63,h=63,fill="#820a0h",stroke="none")|repeat(20,rotate(50))
rect6=rectangle(w=67,h=67,fill="#ce0606",stroke="none")|rotate(15)|repeat(20,rotate(50))
rect7=rectangle(w=71,h=71,fill="#fc9802",stroke="none")|repeat(20,rotate(50))
rect8=rectangle(w=75,h=75,fill="#fceb02",stroke="none")|rotate(15)|repeat(20,rotate(50))|scale(0.98)
c5=circle(r=33,fill="#ff0000",stroke="none")
show(rect8,rect7,rect6,rect5,c5)
mid_petals = rectangle(w=90, h=100, stroke='none',
                       fill="orange") | rotate(11.25) | repeat(8, rotate(22.5))
show(mid_petals)

inner_petals = rectangle(w=70, h=70, stroke='none',
                         fill="yellow") | repeat(8, rotate(22.5))
show(inner_petals)
inner_sqr_rot_a = rectangle(w=35.36, h=35.36, x=18,
                            y=18, fill="orange", stroke='none')
inner_sqr_rot_b = rectangle(w=35.36, h=35.36, x=18, y=18,
                            fill="yellow", stroke='none') | rotate(45)

inner_sqr_rot = combine(
    [inner_sqr_rot_a, inner_sqr_rot_b]) | repeat(4, rotate(90))
show(inner_sqr_rot)

p1 = point(x=0, y=0)
p2 = point(x=35.36, y=35.36)
p3 = point(x=35.36, y=0)

inner_sqr_rot_cover = polygon([p1, p2, p3], fill="orange", stroke='none')
show(inner_sqr_rot_cover)
inner_most_poo = ellipse(
    w=6, h=3, x=5, y=0, fill="pink") | repeat(8, rotate(45))
show(inner_most_poo)