Code to flip the text colour relative to background.

Started by Chicky, Sun 01/04/2007 14:56:44

Previous topic - Next topic

Chicky

Hey all,

I'm looking to have the font colour in my AGS game to be the opposite colour to what the background pixel it is resting on is. For example text would appear white over a black background and black over a white background.

Is there any way of doing this?

monkey0506

Assuming the background color is understood to be solid behind the text you could use SSH's RawGetRGB module. Perhaps...

SMF spam blocked by CleanTalk