Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # encoding: UTF-8
- # Author: Siegfried Paul Keller Schippner
- #
- from Graphics import*
- from Myro import*
- def main():
- win=Window("For",500,500)
- w=2
- f=501
- #Lineas y
- for y in range(w,f,w):
- r=randint(0,255)
- v=randint(0,255)
- a=randint(0,255)
- color=Color(r,v,a)
- #line=Line((0,y),(500,y))
- line=Line((0,0),(500,y))
- line.color=color
- line.draw(win)
- for x in range(w,f,w):
- r=randint(0,255)
- v=randint(0,255)
- a=randint(0,255)
- color=Color(r,v,a)
- line=Line((0,0),(x,500))
- line.color=color
- line.draw(win)
- for y in range(w,f,-w):
- for x in range(w,f,w):
- line=Line((x,y),(x,y))
- line.draw(win)
- main()
Advertisement
Add Comment
Please, Sign In to add comment