Function: lighten()
ts
function lighten(color, amount): Color;Defined in: lighten.ts:14
Lighten a color by a specified amount
Parameters
| Parameter | Type | Description |
|---|---|---|
color | Color | The color to be lightened |
amount | number | The amount to lighten the color by (0-100) |
Returns
The lightened color
Throws
Invalid Color if the color parameter is not a valid color