Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Chicky on Sun 01/04/2007 14:56:44

Title: Code to flip the text colour relative to background.
Post by: Chicky on Sun 01/04/2007 14:56:44
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?
Title: Re: Code to flip the text colour relative to background.
Post by: monkey0506 on Mon 02/04/2007 20:01:41
Assuming the background color is understood to be solid behind the text you could use SSH's RawGetRGB (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=26432.0) module. Perhaps...