Learn Before
Concept
Drawing in Pygame
There a multitude of shapes you can draw with pygame. You specify attributes of the shape like color, size, coordinates for the position, and which surface to draw the shape on. All the drawing functions will take in a color parameter that can be a pygame.Color object, an RGB tuple/list, RGBA tuple/list, or an integer value that has been mapped to the surface's pixel format.
0
1
Updated 2021-06-16
Tags
Python Programming Language
Data Science