PyGame: Applying transparency to an image with alpha?
I want to display an image with alpha with a specified transparency, but can't figure out how to do it. To elaborate on how I'm struggling with this, the blurb below is a slightly modified hunk of code from this SO answer , but if you run it, you'll see that "image" loses it's native alpha, while the alpha of "image2" never changes! Yuck. #!/usr/bin/env python import pygame, sys pygame.init() window = pygame.display.set_mode((200, 200)) background = pygame.Surface((window.get_size())) background.fill((255, 255, 255)) image = image2 = pygame.image.load('alpha.png') image = image.convert() rect