(Formerly known as SetObjectTint, which is now obsolete)
Object.Tint(int red, int green, int blue,
int saturation, int luminance)
Tints the object on the screen to (RED, GREEN, BLUE) with SATURATION percent
saturation.
This function applies a tint to a specific object. 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 object (even if an ambient tint is set).
To remove the tint set by this function and return to using the ambient tint for this
object, call RemoveTint.
NOTE: This function only works in hi-colour games and with hi-colour sprites.
Example:
object[1].Tint(0, 250, 0, 30, 100);
will tint object 1 green.
See Also: Object.RemoveTint,
SetAmbientTint
|