Code
r= rectangle(w=300, h=300, fill= "#00B4FF",stroke="none")
c1 = circle(r=150, fill="#008000",stroke="none")
def mainrec(wi, he, color):
return rectangle(w=wi, h=he, fill=color, stroke="none" )
drc=mainrec(wi=210, he=210, color="#FF9F00") | repeat(18, rotate(10))
drs=mainrec(wi=200, he=200, color="#FF4F00") | rotate(5) |repeat(18, rotate(10))
drsage=mainrec(wi=190, he=190, color="#FF4F00") | repeat(18, rotate(10))
drs2=mainrec(wi=180, he=180, color="#FF4F00") | rotate(5) | repeat(18, rotate(10))
drc2=mainrec(wi=170, he=170, color="#FF9F00") |repeat(18, rotate(10))
shape = circle(x=110, y=0, r=9, fill="#FF4F00", stroke="none") | repeat(36, rotate(10))
show(r,c1,drc,drs,drsage,drs2,drc2,shape)
r1 = rectangle(w=175, h=100, fill="#008000",stroke="none")
r2 = rectangle(w=100, h=175, fill="#008000", stroke="none")
r3 = rectangle(w=145, h=145, fill="#008000", stroke="none" )
r4 = r3 | rotate(45)
show(r1,r2,r3,r4)
c1 = circle(r=85, fill="#AEC300",stroke="none" )
show(c1)
shape = rectangle(w=120, h=120, fill="#FF7518") | repeat(60, rotate(5)|scale(0.92))
shape1 = shape | rotate(45)
show(shape,shape1)
c2 = circle(r=50, fill="#008000",stroke="none" )
show(c2)
shape = circle(x=25, y=0, r=25, fill="#AEC300", stroke="none" ) | repeat(6, rotate(60))
show(shape)
c11 = circle(r=25, fill="#FE6F5E",stroke="none")
c21 = circle(r=35, fill="#FF2400", stroke="none")
c31 = circle(r=45, fill="#990000", stroke="none")
shape5 = combine([c31, c21, c11])
show(shape5)
shape = rectangle(x=10, y=0, w=25, h=25 ) | repeat(12, rotate(30))
show(shape)