Home

Published

- 1 min read

pygame how to make a transparent surface

img of pygame how to make a transparent surface

The solution for this is noted below

pygame how to make a transparent surface

Solution

   #Creates an empty per-pixel alpha Surface
#surface_name = pygame.Surface((x, y), pygame.SRCALPHA)
my_surface = pygame.Surface((500, 500), pygame.SRCALPHA)

Try other methods by searching on the site. That is if this doesn’t work