Hierarchy

  • Color

Constructors

Properties

Methods

Constructors

Properties

a: number
asAlpha: ((opacity) => Color)

Type declaration

    • (opacity): Color
    • Parameters

      • opacity: number

      Returns Color

b: number
g: number
r: number
BLACK: Color
BLUE: Color
GREEN: Color
RED: Color
WHITE: Color

Methods

  • Parameters

    • r: number

      Red (0 to 255)

    • g: number

      Green (0 to 255)

    • b: number

      Blue (0 to 255)

    • a: undefined | number

      Opacity (0 to 255)

    Returns Color

Generated using TypeDoc