Code
#color
color_1 = color(r=245, g=245, b=87, a=0.4)
color_2 = color(r=180, g=18, b=18, a=0.4)
color_3 = color(r=236, g=217, b=42, a=0.8)
color_4 = color(r=170, g=18, b=18, a=0.6)
color_5 = color(r=246, g=255, b=0, a=0.7)
color_6 = color(r=255, g=128, b= 0, a=0.8)
#inner layer
pistil= circle(r=6, fill= '#FFFFCC')
inner_petals = ellipse(x=0, y=0, h=15, w=85, fill='#FF0099') | (repeat(10, rotate(30))) | scale(0.3)
inner_square = rectangle(h=85, w=85, fill='#FFFF66', stroke_width=2) | scale(0.3)
inner_circle1 = circle(r=38, fill= '#990066') | scale(0.5)
inner_ellipse = ellipse(h=100,w=75, fill='#FFFF66') | repeat(20, rotate(10)) | scale(0.5)
inner_circle2 = circle(r=30, fill='#CC0066') | scale(0.9)
#middle layer
#layer1
m1_square = rectangle(h=72, w=72, fill=color_6 ) | repeat(50, rotate(8)) | scale(0.8)
m1_circle = circle(r=42, fill= '#FFFF66')
m1_ellipse = ellipse(h=180, w=120, fill='#CC0066') | (repeat(50, rotate(60))) | scale(0.5)
#layer2
m2_square1= rectangle(h=200, w=200, fill=color_1) | (repeat(30, rotate(20))) | scale(0.4)
m2_square2= rectangle(h=220, w=220, fill=color_4) | (repeat(30, rotate(20))) | scale(0.4)
m2_circle= circle(r=80, fill='#003300') | scale(0.8)
#layer3
m3_ellipse1 = ellipse(h=30, w=200, fill='#FFCC00') | (repeat(30, rotate(10))) | scale(0.8)
m3_ellipse2 = ellipse(h=40,w=210, fill='#FF3366') | (repeat(40, rotate(20))) | scale(0.8)
m3_circle = circle(r=85, fill= '#FF9203')
#outer layer
#layer1
o1_circle1 = circle(x=0, y=95, r=10, fill='#006633') | repeat(30, rotate(20))
o1_circle2 = circle(x=-17, y=93, r=10,fill='#FFCC33') | repeat(30, rotate(20))
o1_circle3 = circle(r=105, fill='#660000')
#layer2
o2_square1 = rectangle(h=170, w=170, fill=color_1) | repeat(30, rotate(5))
o2_square2 = rectangle(h=180, w=180, fill=color_2) | repeat(30, rotate(5))
o2_square3 = rectangle(h=190, w=190, fill=color_3) | repeat(30, rotate(5))
o2_square4 = rectangle(h=200, w=200, fill=color_4) | repeat(30, rotate(5))
o2_square5 = rectangle(h=210, w=210, fill=color_5) | repeat(30, rotate(5))
o2_circle = circle(r=150, fill='#660000')
#show
show(o2_circle,o2_square5, o2_square4, o2_square3, o2_square2, o2_square1, o1_circle3, o1_circle2, o1_circle1, m3_circle, m3_ellipse2, m3_ellipse1, m2_circle, m2_square2, m2_square1, m1_ellipse, m1_circle, m1_square, inner_circle2, inner_ellipse, inner_circle1, inner_square, inner_petals, pistil)