💡 Increases the lightness of a color.
Syntax
import { colorLighten } from '@opentf/std';
colorLighten(input: ColorInput, amount: number, format?: ColorFormat): anyamount: A number between0and1.format: The output format (default:'hex').
Examples
colorLighten('#000', 0.5); //=> '#808080'
colorLighten('red', 0.2); //=> '#ff6666'
colorLighten('red', 0.2, 'hsl'); //=> 'hsl(0, 100%, 70%)'