Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a color in RGBA space.

Hierarchy

  • Color

Index

Constructors

Properties

Constructors

  • new Color(red: number, green: number, blue: number, alpha: number): Color
  • 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].