Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by riptutorial.com #
 
PREVIOUS NEXT
Tagged: #pygame #transparent #surface
ADD COMMENT
Topic
Name
2+2 =