Advertisement
here2share

# t_sq_spiral.py

May 29th, 2019
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. # t_sq_spiral.py
  2.  
  3. from turtle import *
  4. import random
  5. screen = Screen()
  6. screen.screensize(600,600,'black')
  7. pen = Pen()
  8. pen.speed(0)
  9. pen.pensize(2)
  10. pen.hideturtle()
  11. size = 300
  12.  
  13. while size > 20:
  14.     r = random.randint(0,225)
  15.     g = random.randint(0,225)
  16.     b = 255
  17.     randcol = (r,g,b)
  18.     colormode(255)
  19.     pen.color(randcol)
  20.     pen.circle(size,steps = 4)
  21.     pen.right(55)
  22.     size = size-3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement