Jasper Phillips wrote:
def swapRGB( surf, sourceRGB, destRGB ):
    array = pygame.surfarray.array3d( surf )
    array = N.where( array == sourceRGB, destRGB, array )
    return pygame.surfarray.make_surface( array )
I'm stumped, What's the trick?  If only make_surf would take an RGB and
an alpha array, or surfarray could handle RGBA all at once. :-/