Legacy:BlendColors
From Spherical
Returns a new Color object that is the blended color of the two input colors. (c1 and c2)
Contents
Usage
Color BlendColors(c1, c2);
- c1 Color. a Color object created with CreateColor
- c2 Color. a Color object created with CreateColor
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
- Sphere Color object
- CreateColor()
- ApplyColorMask()
- BlendColorsWeighted()