stack

Home > @infiniteobjects/data-types > Color > desaturate

Color.desaturate() method

Desaturate the color a given amount. Providing 100 will is the same as calling greyscale.

Signature:

desaturate(amount?: number): Color;

Parameters

Parameter Type Description
amount number (Optional) The amount to desaturate by. The valid range is 0 to 100. Default value: 10.

Returns:

Color