Code
r = rectangle(w=350,h=350,fill="green",stroke="none")
show(r)
s = rectangle(w=210,h=210,fill="maroon",stroke="none")|repeat(9,rotate(10))
show(s)
shape = rectangle(w=207,h=207,fill="yellow",stroke="none")|repeat(9,rotate(10))
show(shape)
shape1 = rectangle(w=200,h=200,fill="orange",stroke="none")|repeat(9,rotate(10))
show(shape1)
shape2 = circle(x=125,y=0,r=9,fill="maroon",stroke="none")|repeat(36,rotate(10))
show(shape2)
c1 = circle(r=125,fill="green",stroke="none")
show(c1)
shape3 = circle(x=120,y=0,r=2,fill="gold",stroke="none")|repeat(36,rotate(10))
show(shape3)
s1 = rectangle(w=165,h=165,fill="#ff5000",stroke="none")|repeat(9,rotate(10))
show(s1)
s2 = rectangle(w=157,h=157,fill="gold",stroke="none")|repeat(9,rotate(10))
show(s2)
shape4 = circle(x=100,y=0,r=7,fill="#ff5000",stroke="none")|repeat(36,rotate(10))
show(shape4)
c2 = circle(r=90,fill="blue",stroke="none")
show(c2)
shape5 = circle(x=100,y=0,r=2,fill="red",stroke="none")|repeat(36,rotate(10))
show(shape5)
shape6 = circle(x=85,y=0,r=2,fill="red",stroke="none")|repeat(36,rotate(10))
show(shape6)
s3 = rectangle(w=120,h=122,fill="red",stroke="none")|repeat(20,rotate(10))
show(s3)
c3 = circle(r=75,fill="red",stroke="none")
show(c3)
shape7 = circle(x=75,y=0,r=3,fill="blue",stroke="none")|repeat(36,rotate(10))
show(shape7)
c4 = circle(r=70,fill="maroon",stroke="none")
show(c4)
c5 = circle(r=62,fill="#c010c9",stroke="none")
show(c5)
shape8 = circle(x=55,y=0,r=4,fill="maroon",stroke="none")|repeat(36,rotate(10))
show(shape8)
s4 = rectangle(w=75,h=75,fill="red")|repeat(10,rotate(10))
show(s4)
s5 = rectangle(w=60,h=60,fill="red")|repeat(10,rotate(10))
show(s5)
s6 = rectangle(w=55,h=55,fill="red")|repeat(10,rotate(10))
show(s6)
c6 = circle(r=35,fill="red",stroke="none")
show(c6)
c7 = circle(r=25,fill="yellow",stroke="none")
show(c7)
shape9 =circle(x=20,y=0,r=2,fill="red")|repeat(40,rotate(10))
show(shape9)
shape10 =circle(x=15,y=0,r=2,fill="yellow")|repeat(45,rotate(10))
show(shape10)
shape11 =circle(x=12,y=0,r=1,fill="yellow")|repeat(48,rotate(10))
show(shape11)
def dot(x,y):
return circle(x=x,y=y,r=5,fill="red")
def dotted_circle(x,y,r):
c = circle(x=x,y=y,r=r)
d = dot(x=x,y=y)
return c+d
shape12 = dotted_circle(x=0,y=0,r=100)
show(shape12)