RosettaCodeData/Task/Archimedean-spiral/MiniScript/archimedean-spiral-1.mini
2023-12-16 21:33:55 -08:00

11 lines
244 B
Text

clear
x0 = gfx.width / 2
y0 = gfx.height / 2
gfx.clear color.white
for t in range(0, 70 * pi, 0.1)
r = 3.2+ 1.5 * t
x = r * cos(t) + gfx.width / 2
y = r * sin(t) + gfx.height / 2
gfx.line x0, y0, x, y, color.black,2
x0 = x; y0 = y
end for