Open
Description
So basically add a flag that lets you do simple alpha blending using Surface.fill
. It would be the equivalent of creating a surface with a certain alpha value and blitting that on the target surface, essentially this:
image = pygame.image.load(...).convert_alpha()
tint = pygame.Surface(image.get_size(), flags=pygame.SRCALPHA)
tint.fill((255, 0, 0, 100)) # red tint
image.blit(tint, (0, 0))
could turn into this:
image = pygame.image.load(...).convert_alpha()
image.fill((255, 0, 0, 100), special_flags=pygame.BLEND_RGBA) # naming can be discussed obvs
Activity