RosettaCodeData/Task/Archimedean-spiral/Python/archimedean-spiral.py

12 lines
187 B
Python
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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()