Advertisement
here2share

# t_line_spiral.py

Apr 24th, 2021
1,256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. # t_line_spiral.py
  2.  
  3. from turtle import *
  4. from random import randint
  5.  
  6. screen = Screen()
  7. screen.setup(width=720, height=720)
  8. bgcolor('black')
  9. x = 1
  10. tracer(0, 0)
  11. colormode(255)  
  12. while x < 500:
  13.  
  14.     a = randint(0,255)
  15.     b = randint(0,255)  
  16.     c = randint(80,255)
  17.  
  18.     pencolor(a,b,c)
  19.     fd(15 + x)
  20.     rt(95)
  21.     x = x+3
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement