Code
def square(color, side):
return rectangle(w=side, h=side, fill=color, stroke='none')
def triangle(px,py,pz,color) :
return polygon([px,py,pz],fill=color,stroke='none')
c1=circle(r=148,stroke_width=5,fill="#006600",stroke="#006600")
r1=rectangle(w=295,h=12,fill="#800000",stroke="none")| repeat(9,rotate(20))
r2=rectangle(w=295,h=12,fill="black",stroke="none")|repeat(9,rotate(20))
r3=r2|rotate(5)
r4=rectangle(w=295,h=12,fill="#ffcc00",stroke="none")|repeat(9,rotate(20))
r5=r4|rotate(10)
r6=rectangle(w=295,h=12,fill="#ff6600",stroke="none")|repeat(9,rotate(20))
r7=r6|rotate(15)
r8=rectangle(w=260,h=12,fill="#800000",stroke="none")|repeat(9,rotate(20))
r15=r8|rotate(2.5)
r9=rectangle(w=260,h=12,fill="black",stroke="none")|repeat(9,rotate(20))
r10=r9|rotate(7.5)
r11=rectangle(w=260,h=12,fill="#ffcc00",stroke="none")|repeat(9,rotate(20))
r12=r11|rotate(12.5)
r13=rectangle(w=260,h=12,fill="#ff6600",stroke="none")|repeat(9,rotate(20))
r14=r13|rotate(17.5)
c2=circle(r=132,fill="#006600")
maroon_layer = square(side=170.5,color='#c21320') | repeat(10, rotate(10))
dmaroon_layer = square(side=170.5,color='maroon') | repeat(4, rotate(20))
orange_layer = square(side=156, color='#fd6002') | rotate(5) | repeat(10, rotate(10))
yellow_layer = square(side=142, color='#eafe24') | repeat(10, rotate(10))
lyellow_layer = square(side=142, color='#edbb0a') | repeat(4, rotate(20))
light_yellow_layer = square(side=128, color='#f1fd7f') | rotate(5) | repeat(10, rotate(10))
p1 = point(-110,0)
p2 = point(0,40)
p3 = point(110,0)
p4 = point(0,-40)
petal1 = polygon([p1,p2,p3,p4],fill="black") | rotate(45) | repeat(4,rotate(45))
p5 = point(-110,0)
p6 = point(0,25)
p7 = point(110,0)
p8 = point(0,-25)
petal2 = polygon([p5,p6,p7,p8],fill="maroon") | rotate(45) | repeat(4,rotate(45))
p9 = point(-110,0)
p10 = point(0,12)
p11 = point(110,0)
p12 = point(0,-12)
petal3 = polygon([p9,p10,p11,p12],fill="#ff3300") | rotate(45) | repeat(4,rotate(45))
p13 = point(-110,0)
p14 = point(0,3)
p15 = point(110,0)
p16 = point(0,-3)
petal4 = polygon([p13,p14,p15,p16],fill="yellow") | rotate(45) | repeat(4,rotate(45))
c3=circle(r=40,fill="white")
outer_circle = circle(r=50,stroke='none')
t1 = rectangle(h=40,w=40,fill='#ff008e',stroke='none') | repeat(3,rotate(30))
t2 = rectangle(h=50,w=50,fill='#660039',stroke='none') | repeat(3,rotate(30))
t3 = rectangle(h=60,w=60,fill='orange',stroke='none') | repeat(3,rotate(30))
tp1 = point(x=0,y=10)
tp2 = point(x=20,y=0)
tp3 = point(x=-10,y=5)
t4 = triangle(tp1,tp2,tp3,'white') | repeat(12,rotate(30))
#couter circle
show(c1,r1,r3,r5,r7,c2,r10,r12,r14,r15)
#middle circle
show(maroon_layer,dmaroon_layer,orange_layer,yellow_layer,lyellow_layer, light_yellow_layer)
#inner circle
show(petal1,petal2,petal3,petal4)
show(outer_circle+t3+t2+t1+t4)