From Spherical
Jump to: navigation, search

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


Color BlendColors(c1, c2);


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.


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