Represents a color in RGBA space.

Constructors

Properties

Constructors

  • Creates a new color instance.

    Parameters

    • red: number

      The red component.

    • green: number

      The green component.

    • blue: number

      The blue component.

    • alpha: number

      The alpha component.

    Returns Color

Properties

alpha: number

The alpha component of this color in the range [0-1].

blue: number

The blue component of this color in the range [0-1].

green: number

The green component of this color in the range [0-1].

red: number

The red component of this color in the range [0-1].