Character.Tint(int red, int green, int blue,
int saturation, int luminance)
Tints the character on the screen to (RED, GREEN, BLUE) with SATURATION percent
saturation.
This function applies a tint to a specific character. For the meaning of all the parameters,
see SetAmbientTint.
The tint set by this function overrides any ambient tint set for the room. For this
reason, passing the SATURATION as 0 to this function does not turn it off - rather, it
ensures that no tint is applied to the character (even if an ambient tint is set).
To remove the tint set by this function and return to using the ambient tint for this
character, call RemoveTint.
NOTE: This function only works in hi-colour games and with hi-colour sprites.
Example:
cEgo.Tint(0, 250, 0, 30, 100);
will tint the EGO character green.
See Also: Character.HasExplicitTint,
Character.RemoveTint,
SetAmbientTint
|