Advertisement
EmmettMilligan

Random Practice Python

Feb 13th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. from graphics import*;
  2. import random;
  3.  
  4. window = GraphWin("rand doe",500,500)
  5.  
  6. while True:
  7. time.sleep(.1)
  8. r=random.randint(0,255)
  9. rg=random.randint(0,255)
  10. b=random.randint(0,255)
  11. emmett = color_rgb(r,rg,b)
  12. window.setBackground(emmett)
  13. T1 = Text("EPILEPSY TIME",Point(250,250))
  14. T1.setTextColor("black")
  15. T1.setSize(20)
  16. T1.draw(window)
  17.  
  18. window.getMouse()
  19. window.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement