kellex

srgerg

Mar 3rd, 2015
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. # encoding: UTF-8
  2. # Author: Siegfried Paul Keller Schippner
  3. #
  4.  
  5. from Graphics import*
  6. from Myro import*
  7.  
  8. def main():
  9. win=Window("For",500,500)
  10. w=2
  11. f=501
  12.  
  13. #Lineas y
  14. for y in range(w,f,w):
  15. r=randint(0,255)
  16. v=randint(0,255)
  17. a=randint(0,255)
  18. color=Color(r,v,a)
  19. #line=Line((0,y),(500,y))
  20. line=Line((0,0),(500,y))
  21. line.color=color
  22. line.draw(win)
  23. for x in range(w,f,w):
  24. r=randint(0,255)
  25. v=randint(0,255)
  26. a=randint(0,255)
  27. color=Color(r,v,a)
  28. line=Line((0,0),(x,500))
  29. line.color=color
  30. line.draw(win)
  31.  
  32. for y in range(w,f,-w):
  33. for x in range(w,f,w):
  34. line=Line((x,y),(x,y))
  35. line.draw(win)
  36.  
  37. main()
Advertisement
Add Comment
Please, Sign In to add comment