Skip to content

Function: getLightness()

ts
function getLightness(color): number;

Defined in: getLightness.ts:9

Get the lightness value for a color.

Parameters

ParameterTypeDescription
colorColorthe color to get the value from

Returns

number

the lightness value