Color.desaturated

Color.desaturated(factor=10)[source]

Return a desaturated copy of the color.

Parameters

factor (float, optional) – Percentage of saturation reduction.

Returns

Color

Raises

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