Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Replace one color with another.  (Read 1085 times)

0 Members and 1 Guest are viewing this topic.

Jdc1197

  • Newbie
  • *
  • Posts: 1
    • View Profile
Replace one color with another.
« 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.  :)