SFML community forums

Help => Graphics => Topic started by: Jdc1197 on December 20, 2011, 05:18:55 pm

Title: Replace one color with another.
Post by: Jdc1197 on December 20, 2011, 05:18:55 pm
Hey guys, this is my first post on the forums.
Anyway, I'm trying to make a rendering engine for my game, but I'm kinda stumped on how to go about this.

I have an image this is made up of 2 colors. I would like for these 2 colors to be changed on run-time (e.i. Draw this tile, the white is green, and the black is blue).
I don't know how to go about this...

Any help would be appreciated. I'm using SFML 1.6, but willing to change to 2.0 if necessary.  :)