Answers for "how to have transparency in pygame"

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

Python Answers by Framework

Browse Popular Code Answers by Language