Color.desaturate

Color.desaturate(factor=10)[source]

Desaturate the color by a given percentage.

Parameters

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

Returns

None

Raises

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