Lightens a color by a given percentage.
The color in hex, rgb, or any CSS color value.
The percentage (0-1) to lighten the color.
const lightenedColor = lightenColor("#000000", 0.1);console.log(lightenedColor); // "#1a1a1a" Copy
const lightenedColor = lightenColor("#000000", 0.1);console.log(lightenedColor); // "#1a1a1a"
Lightens a color by a given percentage.