Skip to content

Function: darken() ​

ts
function darken(color, amount): Color;

Defined in: darken.ts:12

Darken a color by the specified amount.

Parameters ​

ParameterTypeDescription
colorColorthe color to darken.
amountnumberthe amount to darken the color.

Returns ​

Color

the new darkened color