RGBAColor is a class that represents a color with red, green, blue and alpha components.

Hierarchy

  • unknown
    • RGBAColor

Constructors

  • Parameters

    Returns RGBAColor

  • Creates a new RGBAColor with the given red, green, blue and alpha components.
    Color values should be in the range [0, 1].

    Parameters

    • r: number
    • g: number
    • b: number
    • a: number

    Returns RGBAColor

Accessors

  • get a(): number
  • Returns number

  • set a(val): void
  • Parameters

    • val: number

    Returns void

  • get isRGBAColor(): boolean
  • Returns boolean

Methods

  • Returns this

  • Parameters

    • array: number[]
    • offset: number = 0

    Returns this

  • Parameters

    • color: Color
    • alpha: number

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

Generated using TypeDoc