Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Color

Hierarchy

  • Color

Index

Constructors

Properties

Accessors

Constructors

constructor

  • new Color(obj: string | [number, number, number, undefined | number]): Color
  • Parameters

    • obj: string | [number, number, number, undefined | number]

    Returns Color

Properties

Private _colorRgba

_colorRgba: number[] = [255, 255, 255, 1]

Private _colorString

_colorString: string = "white"

Accessors

color

  • get color(): any
  • set color(color: any): void

hex

  • get hex(): string

hsl

  • get hsl(): string

rgb

  • get rgb(): string

Generated using TypeDoc