Data Types

color

Supported By

Properties

red, green, blue, alpha, hue, saturation, brightness

Description

The color data type represents a color in the sRGB color space. Each color channel is specified by an integer from 0 to 65535. An alpha channel may or may not be specified; if not, it is assumed to be 65535 (opaque).

Notes

The red, green, blue, and alpha properties are integers from 0 to 65535. The hue, saturation, and brightness properties are numbers from 0 to 1.

The string representation of a color is the string representations of the red, green, blue, and alpha components, in order, delimited by commas. If the color is opaque (the alpha component is 65535), only the red, green, and blue components appear in the string representation.

The string representation of a color always includes a comma; it does not depend on the setting of the itemDelimiter property.

Compatibility

OpenXION 1.0 and 1.1 did not support an alpha channel.

Synonym

colour