pygame.display.set_mode()
image = pygame.image.load('triangle.png').convert_alpha()
for x in range(image.get_width()):
    for y in range(image.get_height()):
        pass
Pygame: Converting all white pixels to fully transparent in png image