Interface HSLColor

Hierarchy

Index

Properties

Methods

Properties

public h: number

hue

public l: number

lightness

public s: number

saturation

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 HSL to RGB.

Returns

RGBColor

public toString(): string

convert the color to a string.

Returns

string