RosettaCodeData/Task/Archimedean-spiral/Python/archimedean-spiral.py
2023-07-01 13:44:08 -04:00

11 lines
187 B
Python

from turtle import *
from math import *
color("blue")
down()
for i in range(200):
t = i / 20 * pi
x = (1 + 5 * t) * cos(t)
y = (1 + 5 * t) * sin(t)
goto(x, y)
up()
done()