Interface HCLColor

Hierarchy

Index

Properties

Methods

Properties

public c: number

chroma

public h: number

hue

public l: number

luminance

Methods

public brighter(k: number): Color

increase lightness by some exponential factor (gamma)

Parameters

  • k: number

Returns

Color

public darker(k?: number): Color

decrease lightness by some exponential factor (gamma)

Parameters

  • k?: number optional

Returns

Color

public rgb(): RGBColor

convert from HCL to RGB.

Returns

RGBColor

public toString(): string

convert the color to a string.

Returns

string