Skip to content

Function: desaturate()

ts
function desaturate(color, amount): Color;

Defined in: desaturate.ts:12

Makes the provided color less saturated by the specified amount.

Parameters

ParameterTypeDescription
colorColorthe color to desaturate.
amountnumberthe amount to desaturate the color.

Returns

Color

the new desaturated color