Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to set background color of an image to transparent in pygame

image = pygame.image.load("Your file location")
image.set_colorkey((0, 0, 0))  # If your bg color is black for the image
 
PREVIOUS NEXT
Tagged: #set #background #color #image #transparent #pygame
ADD COMMENT
Topic
Name
1+1 =