Code
# the color changing flower carpet
def random_color():
r = random(255)
g = random(255)
b = random(255)
return color(r=r, g=g, b=b)
shape = rectangle(w=202,h=202,fill=random_color()) | repeat(250, rotate(80))
shape1 = rectangle(w=213,h=213,fill=random_color()) | repeat(3, rotate(70))
c1 = circle(r=150,fill=random_color())
c2 = circle(r=120,fill=random_color())
r2= rectangle(w=200,h=200,fill=random_color())|repeat(21,rotate(33))
r5= rectangle(w=190,h=190,fill=random_color())|repeat(21,rotate(33))
r3= rectangle(w=25,h=25,fill=random_color())|repeat(5,rotate(60))
c3= circle(r=12.5,fill=random_color())
r4= rectangle(w=12.5,h=12.5,fill=random_color())|repeat(5,rotate(60))
c4=circle(r=6.25,fill="cyan")
c5=circle(r=3,fill="red")
e2=ellipse(stroke="black") | repeat(18, rotate(45))
shapes=shape+shape1+c1+r2+r3+c3+r4+c4+c5+r5+c2
show(shapes)
r51 = rectangle(w=80,h=180,fill="orange",stroke='orange')|repeat(36,rotate(10))
c6 = circle(x=50,y=-50,r=50,fill="#129cff",stroke='#129cff')|repeat(10,rotate(-45))
c7 = circle(x=50,y=-50,r=40,fill="#8c0576",stroke='#8c0576')|repeat(10,rotate(-45))
cb = circle(x=50,y=-50,r=36,fill="white",stroke='#white')|repeat(10,rotate(-45))
r61 = rectangle(w=50,h=150,fill="yellow",stroke='yellow')|repeat(36,rotate(15))
r3 = rectangle(w=40,h=140,fill="orange",stroke='orange')|repeat(36,rotate(10))
c8 = circle(r=90,fill="#da251c",stroke='red')
r4 = rectangle(w=128,h=128,fill="orange",stroke='orange')
r5 = rectangle(w=128,h=128,fill="orange",stroke='orange',)| rotate(45)
r6 = rectangle(w=110,h=110,fill="yellow",stroke='yellow')
r7 = rectangle(w=110,h=110,fill="#0d261d",stroke='#0d261d',)| rotate(45)
r8 = rectangle(w=90,h=90,fill=random_color(),stroke='white')
r9 = rectangle(w=90,h=90,fill="white",stroke='white',)| rotate(45)
r10 = rectangle(w=70,h=70,fill="#129cff",stroke='#129cff')
r11 = rectangle(w=70,h=70,fill="violet",stroke='violet',)| rotate(45)
show(r51,c6,c7,cb,r61,r3,e2,c8,r4,r5,r6,r7,r8,r9,r10,r11)
c2=circle(r=30,fill=random_color())
show(c2)
c1=circle(r=20,x=0,y=0,fill='#FF6347 ')
shape6 = ellipse(h=50,w=35,fill=random_color()) | repeat(200, rotate(60))
show(shape6)
show(c1)
shape7 = ellipse(h=28,w=20,fill=random_color()) | repeat(3, rotate(60))
c17=circle(r=10,fill="red")
show(shape7)
show(c17)
r3 = rectangle(w=35,h=35,fill="orange",stroke='orange')|repeat(10,rotate(20))
show(r3)
s = rectangle(x=100, y=0, w=25, h=25,fill="yellow")
s = circle(x=20, y=10, r=10,stroke="grey")
s1 = s | repeat(20, scale(0.85))
s2 = s1 | repeat(36, rotate(10))
show(s2)
c1=circle(x=0,y=0,r=15,fill="#EAB431",stroke="#DF9739")
c2=circle(x=0,y=0,r=10,fill="#E49F0A",stroke="#E49F0A")
c3=circle(x=0,y=0,r=5,fill="#DD890F",stroke="#EAB431")
show(c1,c2,c3)
s1=ellipse(x=0,y=10,h=10,w=5,fill="red",stroke="orange",stroke_width="2")
show(s1)
c20=ellipse(x=0,y=0,w=20,h=10,fill=" brown",stroke="#e34234")
show(c20)