Skip to content

Function: grayscale()

ts
function grayscale(color): Color;

Defined in: grayscale.ts:10

Returns a gray color with the same lightness as the provided color.

Parameters

ParameterType
colorColor

Returns

Color

the new gray color