Hi Ian. I'm just trying to replace every instance of one color with another color, before I render the map_image. Right now I'm using PixelArray to do this, like so:
screen = pygame.display.set_mode(SCREEN_SIZE)
map_image = pygame.image.load('map_image.png').convert_alpha()
image_pixel_array = pygame.PixelArray(map_image)
image_pixel_array.replace(YELLOW, BLUE)
And then in my main game loop, I render with:
screen.blit(map_image, (0, 0))
pygame.display.update()
I've looked in the documentation, but I still don't get exactly how to use transform.threshold... could you should me exactly how to use it, instead of PixelArray, in the above example? Thanks!