spirofrac.py

Created by schraf

Created on August 23, 2022

354 Bytes


from turtle import *
from kandinsky import fill_rect

n = 0
pensize(1)
pencolor(255,255,0)
hideturtle()
fill_rect(0,0,320,222,(0,0,0))

while True: 
  R, k = 60, 1
  penup()
  goto(0,0)
  for v in range(5):
    setheading(n * k * 5 ** v / 36)
    fd(R + R / 3)
    R /= 3
    k = -k
  pendown()
  goto(*position())
  n = (n + 1) % 3600