Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Color

Index

Constructors

constructor

  • new Color(red: number, green: number, blue: number, alpha?: number): Color

Properties

Readonly alpha

alpha: number = 255

Readonly blue

blue: number

Readonly green

green: number

Readonly red

red: number

Static Readonly AQUA

AQUA: Color = ...

Static Readonly BLACK

BLACK: Color = ...

Static Readonly BLUE

BLUE: Color = ...

Static Readonly GRAY

GRAY: Color = ...

Static Readonly GREEN

GREEN: Color = ...

Static Readonly MAGENTA

MAGENTA: Color = ...

Static Readonly RED

RED: Color = ...

Static Readonly WHITE

WHITE: Color = ...

Static Readonly YELLOW

YELLOW: Color = ...

Accessors

hex

  • get hex(): string

int

  • get int(): number

rgb

  • get rgb(): [number, number, number]

rgbString

  • get rgbString(): string

rgba

  • get rgba(): [number, number, number, number]

Methods

normalized

Static fromHex

  • fromHex(color: string): Color

Static fromInt

  • fromInt(color: number): Color

Generated using TypeDoc