Answers for "pygame.Rect syntax"

6

pygame.Rect

pygame.Rect(top, left, width, height) # all values are integers in pixels
Posted by: Guest on February-03-2021
6

pygame draw rect syntax

pygame.draw.rect(SURFACE, RGB_COLOR, (X, Y, WIDTH, HEIGHT))
Posted by: Guest on September-12-2020

Python Answers by Framework

Browse Popular Code Answers by Language