Code
def make_ellipses(count):
return ellipse(w=100, h=50,fill="orange") | repeat(count, rotate(180/count))
a = rectangle(w=200, h=100) | repeat(18, rotate(angle=10))
b = circle(r=112,fill="Black")
#c = make_ellipses(4)
n=24
show(b)
for i in range(18):
blue = 255*(18-i)/(18)
fill = color(r=255, g=255, b=blue)
a = rectangle(w=200, h=100,fill=fill)|rotate((180/18)*(i+1))
show(a)
w=200
h=100
for i in range(20):
red = 255*(i)/(20-1)
fill = color(r=0, g=255, b=red)
e = rectangle(w=w, h=h,fill=fill)
show(e)
w = w - (i*2)
h = h - (i*2)
for i in range(18):
green = 255*(18-i)/(18)
fill = color(r=255, g=green, b=0)
c = ellipse(w=100, h=50,fill=fill)|rotate((180/18)*(i+1))
show(c)
for i in range(8):
red = 255*(8-i)/(8)
fill = color(r=red, g=0, b=0)
d = circle(r=n,fill=fill)
show(d)
n = n - (i*3)
for i in range(8):
red = 255*(8-i)/(8)
fill = color(r=red, g=0, b=0)
e = circle(r=n,fill=fill)|translate(x=50,y=0)
show(e)
n = n - (i*3)
for i in range(8):
red = 255*(8-i)/(8)
fill = color(r=red, g=0, b=0)
f = circle(r=n,fill=fill)|translate(x=-50,y=0)
show(f)
n = n - (i*3)