Negative tints?

Started by deltamatrix, Mon 29/09/2008 22:34:12

Previous topic - Next topic

deltamatrix

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.
BAD WOLF - TORCHWOOD - MR SAXON - THE BEES ARE DISAPPEARING - PANDORICA - RIVER SONG

SSH

Well, since you asked so nicely...  ::)
12

Pumaman

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.

deltamatrix

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.
BAD WOLF - TORCHWOOD - MR SAXON - THE BEES ARE DISAPPEARING - PANDORICA - RIVER SONG

SMF spam blocked by CleanTalk