Created
October 31, 2015 11:48
-
-
Save stamaniorec/cda9c43c8aedfa2eff72 to your computer and use it in GitHub Desktop.
#pygame draw rect
This file contains hidden or 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
| game_display = pygame.display.set_mode((SCREEN_WIDTH,SCREEN_HEIGHT)) | |
| BLACK = (0,0,0) | |
| pygame.draw.rect(game_display, BLACK, [x, y, width, height]) | |
| game_display.fill(BLACK, rect=[x, y, width, height]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment