Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle, random
- Pointer = turtle.Turtle()
- Scr = turtle.Screen()
- Scr.bgcolor("black")
- Pointer.speed(-1)
- Pointer.hideturtle()
- Pointer.pensize(2)
- def RandomColor():
- Array = [0,0,0,0,0,0]
- Array[0] = random.randint(0,9)
- Array[1] = random.randint(0,9)
- Array[2] = random.randint(0,9)
- Array[3] = random.randint(0,9)
- Array[4] = random.randint(0,9)
- Array[5] = random.randint(0,9)
- Color = "#"
- for ColorUnit in Array:
- Color += str(ColorUnit)
- return Color
- def CyclicDraw():
- for i in range (500):
- RColor = RandomColor()
- Pointer.color(RColor)
- Pointer.forward(10*i)
- Pointer.right(180)
- CyclicDraw()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement