Answers for "pygame create surface with transparent background"

1

pygame how to make a transparent surface

#Creates an empty per-pixel alpha Surface
#surface_name = pygame.Surface((x, y), pygame.SRCALPHA)
my_surface = pygame.Surface((500, 500), pygame.SRCALPHA)
Posted by: Guest on December-01-2020

Code answers related to "pygame create surface with transparent background"

Python Answers by Framework

Browse Popular Code Answers by Language