Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # t_sq_spiral.py
- from turtle import *
- import random
- screen = Screen()
- screen.screensize(600,600,'black')
- pen = Pen()
- pen.speed(0)
- pen.pensize(2)
- pen.hideturtle()
- size = 300
- while size > 20:
- r = random.randint(0,225)
- g = random.randint(0,225)
- b = 255
- randcol = (r,g,b)
- colormode(255)
- pen.color(randcol)
- pen.circle(size,steps = 4)
- pen.right(55)
- size = size-3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement