Last active
December 10, 2015 23:08
-
-
Save hortonew/4507011 to your computer and use it in GitHub Desktop.
Pygame - Clear Screen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
pygame.init() | |
screen = pygame.display.set_mode((800,600)) | |
if __name__ == "__main__": | |
while True: | |
screen.fill((0,0,0)) | |
pygame.display.flip() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment