I was thinking of giving the user an option to change colors of a sprite by loading colors from an external file. Is this possible?

I know there's the replace color option. My thoughts had an idea it might have something to do with using GetRGBAat, along with Apppath$ + file name of said image to obtain the color data, or something. But I'm drawing a blank at the proper execution of it.