Code
c=circle(r=150,fill="black",stroke="none")
show(c)
for i in range(10):
if(i%2==0):
r1 = rectangle(w=212,h=212,fill="#960000",stroke="none")
r2 = r1|rotate(i*10)
show (r2)
else:
r1 = rectangle(w=212,h=212,fill="#960000",stroke="none")
r2 = r1|rotate(i*10)
show (r2)
for i in range(10):
if(i%2==0):
r1 = rectangle(w=198,h=198,fill="#eb470c",stroke="none")
r2 = r1 |rotate(i*10+5)
show (r2)
else:
r1 = rectangle(w=198,h=198,fill="#eb470c",stroke="none")
r2 = r1|rotate(i*10+5)
show (r2)
for i in range(10):
if(i%2==0):
r1 = rectangle(w=184,h=184,fill="#ffa305",stroke="none")
r2 = r1 |rotate(i*10)
show (r2)
else:
r1 = rectangle(w=184,h=184,fill="#ffa305",stroke="none")
r2 = r1|rotate(i*10)
show (r2)
for i in range(10):
if(i%2==0):
r1 = rectangle(w=170,h=170,fill="#fcd083",stroke="none")
r2 = r1 |rotate(i*10+5)
show (r2)
else:
r1 = rectangle(w=170,h=170,fill="#fcd083",stroke="none")
r2 = r1|rotate(i*10+5)
show (r2)
for i in range(10):
if(i%2==0):
r1 = rectangle(w=156,h=156,fill="white",stroke="none")
r2 = r1 |rotate(i*10)
show (r2)
else:
r1 = rectangle(w=156,h=156,fill="white",stroke="none")
r2 = r1|rotate(i*10)
show (r2)
e=ellipse(h=110,w=206,fill="red",stroke="none")
e1=e|repeat(6 ,rotate(60))
show(e1)
e=ellipse(h=120,w=198,fill="#500069",stroke="none")
e1=e|repeat(6 ,rotate(60))
show(e1)
e=ellipse(h=120,w=206,fill="black",stroke="none")
e1=e|rotate(30)|repeat(6 ,rotate(60))
show(e1)
e=ellipse(h=120,w=200,fill="yellow",stroke="none")
e1=e|rotate(30)|repeat(6 ,rotate(60))
show(e1)
p1 =point(x=0,y=103)
p2 =point(x=-50,y=0)
p3 =point(x=50,y=0)
poly=polygon([p1,p2,p3],fill="#0c6101",stroke="none")
poly1 = poly | repeat(6, rotate(60))
show(poly1)
c=circle(r=89,fill="white")
show(c)
c=circle(r=83,fill="#9db1fc",stroke="none")
show(c)
c=circle(r=77,fill="#587cfc",stroke="none")
show(c)
c=circle(r=71,fill="#4900b8",stroke="none")
show(c)
r1 = rectangle(w=100,h=100,fill="#ff4000",stroke="none")
r2=r1|repeat(3,rotate(60))
show (r2)
c=circle(r=56,fill="#fff200")
show(c)
85
e=ellipse(h=55,w=114,fill="#500069",stroke="none")
e1=e|rotate(30)|repeat(6 ,rotate(60))
show(e1)
e=ellipse(h=55,w=105,fill="#882ab0",stroke="none")
e2=e|rotate(30)|repeat(6 ,rotate(60))
show(e2)
e=ellipse(h=55,w=95,fill="#b964de",stroke="none")
e3=e|rotate(30)|repeat(6 ,rotate(60))
show(e3)
e=ellipse(h=55,w=85,fill="#d48ff2",stroke="none")
e3=e|rotate(30)|repeat(6 ,rotate(60))
show(e3)
e=ellipse(h=73,w=73,fill="#33d130")
show(e)
e=ellipse(h=63,w=63,fill="#78ff75",stroke="none")
show(e)
e=ellipse(h=53,w=53,fill="#c9ffd1",stroke="none")
show(e)
53
p1 =point(x=0,y=0)
p2 =point(x=-18,y=18)
p3 =point(x=18,y=18)
poly=polygon([p1,p2,p3],fill="#d9000b",stroke="none")
poly1 = poly | repeat(6, rotate(60))
show(poly1)
e=ellipse(h=15,w=25)
e3=e|rotate(30)|repeat(6 ,rotate(60))
show(e3)
e=ellipse(h=5,w=5,fill="#062e00")
show(e)