Skip to content

Class: Color

Defined in: Color.ts:17

Implements

Constructors

Constructor

ts
new Color(color?): Color;

Defined in: Color.ts:28

Parameters

ParameterType
color?| string | RGBColor | HSLColor

Returns

Color

Properties

hex

ts
hex: string;

Defined in: Color.ts:18

Implementation of

ColorType.hex


hsl

ts
hsl: HSLColor;

Defined in: Color.ts:20

Implementation of

ColorType.hsl


rgb

ts
rgb: RGBColor;

Defined in: Color.ts:19

Implementation of

ColorType.rgb