Advertisement
EXTREMEXPLOIT

Random Draw #8

Jul 24th, 2019
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.69 KB | None | 0 0
  1. import turtle, random
  2.  
  3. Pointer = turtle.Turtle()
  4. Scr = turtle.Screen()
  5. Scr.bgcolor("black")
  6. Pointer.speed(-1)
  7. Pointer.hideturtle()
  8. Pointer.pensize(2)
  9.  
  10. def RandomColor():
  11.     Array = [0,0,0,0,0,0]
  12.     Array[0] = random.randint(0,9)
  13.     Array[1] = random.randint(0,9)
  14.     Array[2] = random.randint(0,9)
  15.     Array[3] = random.randint(0,9)
  16.     Array[4] = random.randint(0,9)
  17.     Array[5] = random.randint(0,9)
  18.     Color = "#"
  19.     for ColorUnit in Array:
  20.         Color += str(ColorUnit)
  21.     return Color
  22.  
  23. def CyclicDraw():
  24.     for i in range (500):
  25.         RColor = RandomColor()
  26.         Pointer.color(RColor)
  27.         Pointer.forward(10*i)
  28.         Pointer.right(180)
  29.    
  30. CyclicDraw()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement