Color

Color represents the premultiplied RGBA color value.

Hierarchy

Constructors

new Color(r: number, g: number, b: number, a: number): Color

  • r

    The red value premultiplied by alpha value.

  • g

    The green value premultiplied by alpha value.

  • b

    The blue value premultiplied by alpha value.

  • a

    The alpha value.

Properties

a: number

The alpha value.

b: number

The blue value premultiplied by alpha value.

g: number

The green value premultiplied by alpha value.

r: number

The red value premultiplied by alpha value.

Methods

equals(other: Color): boolean

Compares values of this Color with other Color.

members(): Array<number>

Returns

The [r, g, b, a] array.