Class Color

Hierarchy

  • Color

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

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

    Returns Color

  • Parameters

    • value: {
          a?: number;
          b?: number;
          g?: number;
          r?: number;
      }
      • Optional a?: number
      • Optional b?: number
      • Optional g?: number
      • Optional r?: number

    Returns Color

Properties

a: number
b: number
g: number
r: number
BLACK: Color = ...
TRANSPARENT: Color = ...
WHITE: Color = ...

Accessors

  • get encoded(): {
        b: number;
        g: number;
        r: number;
    }
  • Returns {
        b: number;
        g: number;
        r: number;
    }

    • b: number
    • g: number
    • r: number
  • get hsv(): [h: number, s: number, v: number]
  • Returns [h: number, s: number, v: number]

Methods

  • Parameters

    • amount: number

    Returns Color

  • Parameters

    • amount: number

    Returns Color

  • Parameters

    • h: number
    • s: number
    • v: number

    Returns Color

  • Parameters

    • hex: string

    Returns Color

Generated using TypeDoc