Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from graphics import*;
- import random;
- win = GraphWin("words", 1000, 500)
- win.setBackground("white")
- while True:
- time.sleep(0.1)
- r=random.randint(0,255)
- rg=random.randint(0,255)
- b=random.randint(0,255)
- emmett = color_rgb(r,rg,b)
- fc = open('Txt.txt','r')
- w = fc.readlines()
- for x in w:
- xx = random.randint(0,1000)
- yy = random.randint(0,500)
- x = Text(Point(xx,yy), x)
- x.setFill(emmett)
- x.draw(win)
- win.getMouse()
- win.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement