Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- import random
- colors = ['red', 'yellow','green','blue', 'purple', 'grey', 'white','orange','violet']
- t = turtle.Pen()
- t.width(1.5)
- turtle.bgcolor('black')
- for x in range(200):
- col = random.randint(0,8)
- t.pencolor(colors[col])
- t.forward(x)
- t.left(60)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement