Code
shape = circle(x=150, y=0, r=20,fill="black") | repeat(200, rotate(10))
show(shape)
c = circle(r=150, fill="black", stroke="black")
show(c)
r1 = rectangle (w=209,h=209,fill="#9400D3", stroke="#9400D3") | repeat (15,rotate(50))
r2 = rectangle (w=193,h=193,fill="#4B0082", stroke="#4B0082")|rotate(15) | repeat (15,rotate(50))
r3 = rectangle (w=178,h=178,fill="#0000FF", stroke="#0000FF")|rotate(0) | repeat (15,rotate(50))
r4 = rectangle (w=165,h=165,fill="#00FF00", stroke="#00FF00")|rotate(15) | repeat (15,rotate(50))
r5 = rectangle (w=153,h=153,fill="#FFFF00", stroke="#FFFF00")|rotate(0) | repeat (15,rotate(50))
r6 = rectangle (w=140,h=140,fill="#FF7F00", stroke="#FF7F00") |rotate(15) | repeat (100,rotate(15))
r7 = rectangle (w=120,h=120,fill="#FF0000", stroke="#FF0000") | rotate(0) |repeat (200,rotate(15))
show(r1,r2,r3,r4,r5,r6,r7)
c1 = circle(r=10, fill="black", stroke="none")
c2 = circle(r=70, fill="#00FF00", stroke="yellow",stroke_width="3")
show(c2,c1)
l= line(x1=10, y1=0, x2=70, y2=0)
ray=l|repeat(90, rotate(5))
show(ray)