Code
x, y = 0, 0
outer_radius =150
n = 10
step = outer_radius/n
r = step
for i in range(n):
c = circle(x=x, y=y, r=r,fill="mediumspringgreen")
show(c)
r = r+step
shape2 = rectangle(w=200, h=200,fill="purple") | repeat(9, rotate(10))
show(shape2)
c2 = color(r=0, g=255, b=0, a=0.5)
c1= circle(fill="cadetblue")
l1=line(x1=0,y1=100,x2=100,y2=0)
l2=line(x1=0,y1=-100,x2=-100,y2=0)
l3=line(x1=-100,y1=0,x2=0,y2=100)
l4=line(x1=100,y1=0,x2=0,y2=-100)
show(c1,l1,l2,l3,l4)
c5= color(r=255, g=0, b=0, a=0.5)
e1=ellipse(w=50,h=200,fill="red")
e2=ellipse(w=200,h=50,fill="red")
show(e1,e2)
shape = ellipse(fill="red") | repeat(5, rotate(60))
show(shape)
c3=circle(r=50,fill="lime")
show(c3)
c4=circle(r=30,fill="white")
show(c4)
c6= color(r=80, g=0, b=0, a=0.5)
shape1 = ellipse(w=30,h=10,fill=c6) | repeat(10, rotate(20))
show(shape1)
s1 = circle(x=100, y=0, r=10,fill="yellow")
s2 = s1 | rotate(45)
s3 = s1 | rotate(90)
show(s1, s2, s3)
s4 = circle(x=-100, y=0, r=10,fill="yellow")
s5 = s4 | rotate(45)
s6 = s4 | rotate(90)
show(s4, s5, s6)
s7 = circle(x=0, y=-100, r=10,fill="yellow")
s8 = s7 | rotate(45)
show(s7, s8)
s9 = circle(x=0, y=100, r=10,fill="yellow")
s10 = s9 | rotate(45)
show(s9, s10)
s11 = circle(x=30, y=0, r=10,fill="darkviolet")
s12 = s11 | rotate(45)
s13 = s11 | rotate(90)
show(s11, s12, s13)
s14 = circle(x=-30, y=0, r=10,fill="darkviolet")
s15 = s14 | rotate(45)
s16 = s14 | rotate(90)
show(s14, s15, s16)
s17 = circle(x=0, y=-30, r=10,fill="darkviolet")
s18 = s17 | rotate(45)
show(s17, s18)
s19 = circle(x=0, y=30, r=10,fill="darkviolet")
s20 = s19 | rotate(45)
show(s19, s20)
s21 = circle(x=100, y=0, r=3,fill="crimson")
s22 = s21 | rotate(45)
s23 = s21 | rotate(90)
show(s21, s22, s23)
s24 = circle(x=-100, y=0, r=3,fill="crimson")
s25 = s24 | rotate(45)
s26 = s24 | rotate(90)
show(s24, s25, s26)
s27 = circle(x=0, y=-100, r=3,fill="crimson")
s28 = s27 | rotate(45)
show(s27, s28)
s29 = circle(x=0, y=100, r=3,fill="crimson")
s30 = s29 | rotate(45)
show(s29, s30)