Color.desaturate

Color.desaturate(factor=10)[source]

Desaturate the color by a given percentage.

Parameters:
factorfloat, optional

Percentage of saturation reduction.

Returns:
None
Raises:
ValueError

If the percentage of desaturation is not in the range 0-100.