Home > @infiniteobjects/data-types > Color > desaturate
Desaturate the color a given amount. Providing 100 will is the same as calling greyscale.
Signature:
desaturate(amount?: number): Color;
Parameter | Type | Description |
---|---|---|
amount | number | (Optional) The amount to desaturate by. The valid range is 0 to 100. Default value: 10. |
Returns: