Legacy:BlendColors

From Spherical
Revision as of 04:50, 4 June 2013 by Apollolux (talk | contribs) (filled)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns a new Color object that is the blended color of the two input colors. (c1 and c2)

Usage

Color BlendColors(c1, c2);


Examples

var Red = CreateColor(255, 0, 0); //Creates a red color.

var Blue = CreateColor(0, 255, 0); //Creates a blue color.

var Purple = BlendColors(Red, Blue); //Creates a purple color by blending the red and blue colors.

Notes

This command is useful for translucency effects, but Sphere supports alpha mapping natively, so it's usually not necessary. ( If you want to tint the whole screen use the ApplyColorMask command. ) It's not efficient to call this command very often, so whenever possible, just create the blended color in the first place.

See also


API:Color/navbox