I made it work with Python2.7, but I think Python3 is also okay.
import turtle as tur
import math
tur.shape('turtle')
tur.left(90)
A = 5
for k in range(360):
tur.forward(1)
tur.setheading(math.degrees(math.atan(A * math.cos(math.radians(k)))))
(Addition 2015/8/29 19:41) This is the execution result.
Recommended Posts