spirale.py

Created by schraf

Created on April 21, 2024

286 Bytes


import turtle
from math import cos, radians

t = turtle
t.speed(0) 
t.hideturtle()
t.pensize(1)

for a in range(0, 1440, 3):
  w = (a / 32) * cos(radians(a) * 5.5)
  t.setheading(90 + a)
  r = 5 + a / 9
  t.penup()
  t.goto(0, 0)
  t.fd(r - w / 2)
  t.pendown()
  t.fd(w)