Code
c=rectangle(w=300,h=300,fill="dimgray")
show(c)
def outer(side,color):
return rectangle(w=side,h=side,fill=color,stroke="none")
firstCircle = circle(r=148,fill="mistyrose",stroke="white",stroke_width=2)
show(firstCircle)
maroon=outer(side=203,color=color(r=255,g=0,b=0))|repeat(10,rotate(10))
show(maroon)
red=outer(side=189,color="mistyrose")|rotate(5)|repeat(10,rotate(10))
show(red)
orange=outer(side=174,color="orangered")|rotate(10)|repeat(10,rotate(10))
show(orange)
amber=outer(side=170,color="yellow")|rotate(15)|repeat(10,rotate(10))
show(amber)
secondCircle = circle(r=104,fill="white",stroke="none")
show(secondCircle)
p=circle(r=115,fill="sienna",stroke="none")
show(p)
p=circle(r=110,fill="saddlebrown",stroke="none")
show(p)
g=circle(r=120,fill="orange",stroke="none")
show(g)
g=circle(r=115,fill="red",stroke="none")
show(g)
g=circle(r=105,fill="red",stroke="none")
show(g)
shape = rectangle(w=155, h=155,fill="gold",stroke="none") | repeat(9, rotate(10))
show(shape)
c=circle(r=100,fill="maroon",stroke="none")
show(c)
shape = rectangle(w=122, h=122,fill="red",stroke="none") | repeat(9, rotate(10))
show(shape)
c=circle(r=60,fill="orange",stroke="none")
show(c)
c=circle(r=60,fill="orange",stroke="none")
c1=ellipse(stroke="mistyrose") | repeat(50 , rotate(10))
c2=circle(r=86,fill="black")
c3=rectangle(w=120,h=120,fill="brown",stroke="brown") |repeat(50,rotate(10))
c4=rectangle(w=110,h=110,fill="red",stroke="red") |rotate(15)|repeat(50,rotate(10))
c5=rectangle(w=100,h=100,fill="orange",stroke="orange")|repeat(50,rotate(10))
c6=rectangle(w=90,h=90,fill="yellow",stroke="yellow")|rotate(15)|repeat(50,rotate(10))
show(c2,c1,c3,c4,c5,c6)
shape = circle(x=15, y=0, r=10,stroke="peru") | repeat(20, rotate(30))
show(shape)
filll="yellow"
shape = circle(x=27, y=20, r=5,fill=filll,stroke="none") | repeat(100, rotate(65))
show(shape)
shape = rectangle(w=80, h=80,fill="gold",stroke="yellowgreen") | repeat(9, rotate(10))
show(shape)
c=circle(r=20,fill="yellow",stroke="none")
show(c)
shape = rectangle(w=25, h=20,stroke="darkred",stroke_width=10) | repeat(9, rotate(30))
show(shape)
z=line(x1=0,y1=60,x2=0,y2=95,stroke_width=9,stroke="moccasin")|repeat(15,rotate(30))
show(z)
c1 = ellipse(w=10,h=60,stroke="antiquewhite",stroke_width=4)|repeat(30, rotate(20))
c2=circle(r=50)
show(c1)
z=line(x1=5,y1=60,x2=0,y2=95,stroke_width=9,stroke="red")|repeat(15,rotate(30))
show(z)
gill=color(r=255,g=215,b=0,a=1.5)
shape = circle(x=100, y=0, r=10,fill=gill,stroke="none") | repeat(36, rotate(10))
show(shape)
e = ellipse(w=43,h=3,x=20,y=0,fill="red",stroke='none')| repeat(38,rotate(10))
show(e)
e = ellipse(w=23,h=3,x=20,y=0,fill="white",stroke='none')| repeat(38,rotate(10))
show(e)
c=circle(r=5,fill="white")
show(c)
c=circle(r=2,fill="black")
show(c)