Code
def square(color, side):
return rectangle(w=side, h=side, fill=color, stroke='none')
def buildLayer(side,color):
return square(color=color,side=side)| repeat(10,rotate(10))
#outer_Layer
background = circle(r=150,fill="#26001B",stroke="none")
flower = ellipse(w=3,h=16,fill="#FAFF00",stroke="none")|repeat(9,rotate(40))
outer_flowers = flower |translate(x=-139)| repeat(36,rotate(10))
l1 = buildLayer(side=182,color="#FF3F00")
l2 = buildLayer(side=164,color="#F9D00F")|rotate(5)
l3 = buildLayer(side=150,color="#FCFAFA")
l4 = buildLayer(side=138,color="black")| rotate (5)
l5 = buildLayer(side=133,color="#F7FF56")| rotate (5)
show(background,outer_flowers,l1,l2,l3,l4,l5)
#inner_layer
colors1 = ["#FFFAA4", "#54E346", "#0E49B5", "#153E90", "#5d3572"]
for i in reversed(range(len(colors1))):
e = ellipse(h=150,w=i*10,fill=colors1[i])|repeat(20,rotate(40))
show(e)
colors2 =["black","yellow","#FF5722"]
for i in range(len(colors2)):
s = square(side=70-i*8,color=colors2[i])|repeat(2,rotate(45))
show(s)
#center
c1=circle(r=29,fill='#41e537',sroke="black",stroke_width="1")
c2=ellipse(h=52,w=10,fill='#168D6D',stroke="none")|repeat(20,rotate(40))
c3=ellipse(h=46,w=8,fill='white',stroke_width="0.4")|repeat(19,rotate(40))
c4=circle(r=4.7,fill="#153E90",stroke="none")
show (c1,c2,c3,c4)