-
-
Notifications
You must be signed in to change notification settings - Fork 230
Open
Labels
Description
Current behavior:
search_color @ pygame.transform.threshold ignores alpha channel
Expected behavior:
I was expecting half image turn blue.
Screenshots
128x128 red image with one half 92 transparency and the other half 128 transparency:

after applying pygame.transform.threshold both regions turn blue with 128 transparency:
Test code
import pygame
pygame.init()
image = pygame.image.load('test.png')
pygame.transform.threshold(image, image, (255,0,0,92), (0,0,0,0), (0,0,255,128), 1, None, True)
pygame.image.save(image, 'test2.png')
pygame.quit()Reactions are currently unavailable