Advertisement
MightyD33r

Star Sky Night

Sep 13th, 2019
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. import turtle
  2. import math
  3.  
  4. t = turtle.Turtle()
  5. t.speed(0)
  6.  
  7. s = 1
  8. for i in range(5000):
  9.     t.color((255 * 10 ** (-i * 0.002), 255 * 10 ** (-i * 0.05), 255 * 10 ** (-i * 0.002)))
  10.     print(s, i)
  11.     t.forward(s / 2)
  12.     t.left(90)
  13.     t.forward(1)
  14.     s = math.sqrt(s ** 2 + s)
  15.     t.forward(s / 2)
  16.     t.left(90 + math.sqrt(i))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement