Skip to main content

Interface: HSL

Defined in: types/color.ts:36

An HSL color type is an object with hue, saturation, and lightness components.

Properties

a?

optional a: number

Defined in: types/color.ts:52

The alpha component of the color, ranging from 0 to 1.


h

h: number

Defined in: types/color.ts:40

The hue component of the color, ranging from 0 to 360.


l

l: number

Defined in: types/color.ts:48

The lightness component of the color, ranging from 0 to 100.


s

s: number

Defined in: types/color.ts:44

The saturation component of the color, ranging from 0 to 100.