Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- import random
- Scr = turtle.Screen()
- Pointer = turtle.Turtle()
- Scr.setup(1000,800)
- Pointer.hideturtle()
- Pointer.speed(100)
- Colors=["red","blue","yellow","green","cyan","black"]
- X=0
- Y=401
- print("Starting...")
- print(" ")
- for i in range(1000):
- BGColor=random.choice(Colors)
- Color=random.choice(Colors)
- Scr.bgcolor(BGColor)
- Y-=1
- Pointer.penup()
- Pointer.goto(X,Y) #Initial: X=-500 Y=400
- Pointer.pendown()
- Pointer.pencolor(Color)
- Pointer.dot(100)
- print("Done!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement