So setzen Sie die Hintergrundfarbe eines Bildes in Pygame auf transparent

image = pygame.image.load("Your file location")
image.set_colorkey((0, 0, 0))  # If your bg color is black for the image
Relieved Rattlesnake