Color.darken

Color.darken(factor=10)[source]

Darken the color.

Parameters

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

Returns

None

Raises

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