# Color.darkened

Color.darkened(factor=10)[source]

Return a darkened copy of the color.

Parameters

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

Returns

Color

Raises

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