Difference between revisions of "Legacy:Color"
From Spherical
(created from http://web.archive.org/web/20110731235553/http://www.spheredev.org/wiki/Object-Color) |
(No difference)
|
Latest revision as of 04:40, 4 June 2013
The Color object holds information about a color and is used in most of Sphere's drawing functions. Color objects are created using CreateColor().
Two colors can be blended to make a new color that is part-way between the different shades. See BlendColors() and BlendColorsWeighted() for more details. A color mask is commonly used to influence the final appearance of colors. See color masking for more details.
Members
- red Red color value (0-255).
- green Green color value (0-255).
- blue Blue color value (0-255).
- alpha Alpha transparency value (0-255). The lower the value, the more transparent the color will be. An alpha of 255 means that this color is opaque.
Methods
None.