Creates a lighter secondary color from the existing color.
Parameters
factor — int, optional
The function generates a new color by setting the lightness in HSL space to (1-1/
factor
) + L/factor
. Valid values range from 1 (to return the same color) toinf
(to return white).Default value: 3
Return Value — Color
A new Color
object.
Notes and Examples