Code
c6=circle(r=148,fill="#ff0026",stroke="black")
shape = circle(x=140, y=0, r=7,fill="#c2152f",stroke="") | repeat(36, rotate(10))
show(c6,shape)
c5=circle(r=136,fill="#ff0019")
shape = rectangle(w=190, h=190,fill="#ebeb0c") | repeat(9, rotate(10))
show(c5,shape)
c4=circle(r=122,fill="red",stroke="none")
show(c4)
def square(color, side):
return rectangle(w=side, h=side, fill=color, stroke="none")
r1 = rectangle (w=172,h=172,fill="brown", stroke="brown") | repeat (15,rotate(50))
r2 = rectangle (w=160,h=160,fill="red", stroke="red")|rotate(15) | repeat (15,rotate(50))
r3 = rectangle (w=150,h=150,fill="orange", stroke="orange")|rotate(0) | repeat (15,rotate(50))
r4 = rectangle (w=140,h=140,fill="yellow", stroke="yellow")|rotate(15) | repeat (15,rotate(50))
show(r1,r2,r3,r4)
c3=circle(r=85,fill="brown")
show(c3)
r1 = square(side=65,color="#7d100") | repeat(10, rotate(30))
r2 = square(side=79,color="golden") | rotate(15)| repeat(10, rotate(30))
r3= square(side=97,color="orange") | repeat(10, rotate(30))
r4=square(side=117,color="yellow") | rotate(15)| repeat(10, rotate(30))
c1 = ellipse(w=110,h=40,x=0,y=0,fill="none",stroke="brown")| repeat(100, rotate(9))
show(r4,r3,r2,r1,c1)
c2=circle(r=36,fill="#d907f5",stroke="black")
show(c2)
e1=ellipse(w=42,h=20,x=8,y=0,stroke='##0a7029',stroke_width=3,fill="#bd0b8d") | rotate(22.5)
petal=e1 | repeat(9, rotate(45))
show(petal)
for i in range(1,3) :
show(rectangle(h=15*i,w=10*i,fill="none",stroke="white",) | repeat(6,rotate(30)))