Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: deltamatrix on Mon 29/09/2008 22:34:12

Title: Negative tints?
Post by: deltamatrix on Mon 29/09/2008 22:34:12
Hey,

Why does Character.Tint not support negative tints? I could use the ability to reduce the level of red and well as increase the blue content. Negative tints were allowed in a-v-o's flashlight plugin.

I don't see why this feature can't be implemented in AGS.
Title: Re: Negative tints?
Post by: SSH on Tue 30/09/2008 15:42:18
Well, since you asked so nicely...  ::)
Title: Re: Negative tints?
Post by: Pumaman on Tue 30/09/2008 19:32:35
The way that AGS does tints, it wouldn't make sense to have negative numbers. If you tint to (0,0,0) then the sprite will go completely black, so negative numbers would need to have some whole new type of colour defined!!

You could reduce the red and increase the blue by using a tint such as (0, 128, 255) though because AGS re-colourises sprites rather than simply adjusting the offsets of the colour components you'd have to play with the numbers to get it looking the way you wanted.
Title: Re: Negative tints?
Post by: deltamatrix on Wed 01/10/2008 23:40:48
Interesting. This requires more experiments with the new tint scales. Hopefully this brings me one step closer to the day/night filter I am experimenting with.

Thanks for your help guys.