Skip to content

Instantly share code, notes, and snippets.

@stamaniorec
Created October 31, 2015 11:48
Show Gist options
  • Select an option

  • Save stamaniorec/cda9c43c8aedfa2eff72 to your computer and use it in GitHub Desktop.

Select an option

Save stamaniorec/cda9c43c8aedfa2eff72 to your computer and use it in GitHub Desktop.
#pygame draw rect
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