Advertisement
EXTREMEXPLOIT

Random Draw #5

Jul 24th, 2019
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.82 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 PsyTriangle():
  24.     for i in range (250):
  25.         if i%2 == 0:
  26.             Scr.bgcolor("white")
  27.         else:
  28.             Scr.bgcolor("black")
  29.         RColor = RandomColor()
  30.         Pointer.color(RColor)
  31.         Pointer.forward(10*i)
  32.         Pointer.right(360/3)
  33.     Scr.bgcolor("black")
  34.    
  35. PsyTriangle()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement