Legacy:Color

From Spherical
Jump to: navigation, search

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.

See also


API:Color/navbox