Skip to content

Instantly share code, notes, and snippets.

@sinewalker
Last active January 21, 2017 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sinewalker/8a2e2535337edecfb966aaea69338ee8 to your computer and use it in GitHub Desktop.
Save sinewalker/8a2e2535337edecfb966aaea69338ee8 to your computer and use it in GitHub Desktop.
import pygame, random
pygame.init();
scr=pygame.display.set_mode([640,400])
df=pygame.display.flip; rnd=random.randrange; draw=pygame.draw
scr.fill([0,0,255]); df()
while True:
draw.aaline(scr, [rnd(255),rnd(255),rnd(255)],
[rnd(640),rnd(400)],
[rnd(640),rnd(400)]); df()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment