Answers for "how to use an image with transparent background in pygame"

1

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
Posted by: Guest on December-23-2020

Code answers related to "how to use an image with transparent background in pygame"

Python Answers by Framework

Browse Popular Code Answers by Language