Code
c = circle(r=152,fill='#341118')
show(c)
def outer(side,color):
return rectangle(w=side,h=side,fill=color,stroke="none")
red=outer(side=214,color="#aa0906")|repeat(10,rotate(10))
orange=outer(side=110,color="yellow")|repeat(10,rotate(10))
#yellow=rectangle(w=210,h=212.5,fill="yellow")|repeat(10,rotate(10))
show(red)
c = circle(r=139,fill="green",stroke="none")
show(c)
white=outer(side=196,color="white")|repeat(10,rotate(10))
show(white)
yellow=outer(side=182,color="yellow")|rotate(5)|repeat(10,rotate(10))
show(yellow)
orange=outer(side=168,color="orange")|rotate(10)|repeat(10,rotate(10))
show(orange)
def square(color, side):
return rectangle(w=side, h=side, fill=color, stroke='none')
br1=square(side=135,color='red') | repeat(15, rotate(15))
br2=square(side=151.5,color='#7d1004') | rotate(22.5)|repeat(3, rotate(15))
br3=square(side=151.5,color='white') | rotate(67.5)|repeat(3, rotate(15))
br4=square(side=170,color='orange') | rotate(30)|repeat(2, rotate(15))
br5=square(side=170,color='#f4ff59') | rotate(30)|repeat(10, rotate(15))
br6=square(side=190,color='#f4ff59') | rotate(37.5)|repeat(1, rotate(15))
br7=square(side=190,color='#7d1004') | rotate(37.5)|repeat(10, rotate(15))
show(br7,br6,br5,br4,br3,br2,br1)
c3=circle(r=85,fill="yellow")
c4=circle(r=75,fill="green")
show(c3,c4)
r1 = square(side=65,color='#7d1004') | repeat(10, rotate(30))
r2 = square(side=79,color='#ba1b09') | rotate(15)| repeat(10, rotate(30))
r3= square(side=97,color='orange') | repeat(10, rotate(30))
r4=square(side=117,color='#f4ff59') | rotate(15)| repeat(10, rotate(30))
show(r4,r3,r2,r1)
c2=circle(r=36,fill="red")
show(c2)
e1=ellipse(x=13,w=22,h=10,stroke="#F36636",fill='#f7da14')
petal=e1 | repeat(9, rotate(45))
show(petal)
c1=circle(r=5,fill="#9e0808",stroke="none")
show(c1)