Answers for "pygame get rect"

6

pygame.Rect

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

pygame rect

pygame.draw.rect(surface, colour, Rect)
#Rect would be a .Rect() variable.
Posted by: Guest on June-24-2021

Python Answers by Framework

Browse Popular Code Answers by Language