Color.desaturated

Color.desaturated(factor=10)[source]

Return a desaturated copy of the color.

Parameters:
factorfloat, optional

Percentage of saturation reduction.

Returns:
compas.colors.Color
Raises:
ValueError

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