Adjusts the luminosity of a given color, making it lighter or darker.
If the color's luminosity is less than 0.02, the color will be lightened.
Otherwise, the color will be darkened.
Parameters
color: string
The CSS color string to be adjusted.
Returns ColorInstance
A new Color object representing the adjusted color.
Adjusts the luminosity of a given color, making it lighter or darker. If the color's luminosity is less than 0.02, the color will be lightened. Otherwise, the color will be darkened.