Python Tutorial

How To Draw A Color Rectangle In Pygame

The python pygame.Rect(top, left, width, height) class is used to create a rectangle object. You can specify the rectangle object’s position (top, left) and size (width, height) when you create it. And the rectangle represented area must be drawn on a pygame surface object. This article will tell you how to use the pygame.Rect object

How To Draw A Color Rectangle In Pygame Read More »