Draw image with select background and foreground color
I'm making a enhanced ASCII interface. I have encountered a problem.
I must put a image of color X on a background of color Y efficiently.
look a the C in red or the double ~
A tileset like this one http://img143.imageshack.us/img143/4869/jasciitiles.png will be used. Each tile is 16x16. The areas that are white will become color X. Grays should became less color X, but this may not be an option.
I think this pertains to the use of the graphic's XOR mode.