Hierarchy

  • Color

Constructors

Properties

Methods

Constructors

Properties

a: number

The alpha channel value, in the range 0 to 255 (inclusive).

b: number

The blue channel value, in the range 0 to 255 (inclusive).

g: number

The green channel value, in the range 0 to 255 (inclusive).

name: string

The color name, if defined; otherwise an empty string.

r: number

The red channel value, in the range 0 to 255 (inclusive).

Methods

  • If the color's name is non-empty, return that. Otherwise return its textualization in the form rgb(R,G,B). The alpha channel is ignored.

    Returns string

  • If the color's name is non-empty, return that. Otherwise return its textualization in the form AARRGGBB, with hexadecimal values.

    Returns string

  • If the color's name is non-empty, return that. Otherwise return its textualization in the form #RRGGBB, with hexadecimal values. The alpha channel is ignored.

    Returns string

Generated using TypeDoc