stack

Home > @infiniteobjects/data-types > Color > lighten

Color.lighten() method

Lighten the color a given amount. Providing 100 will always return white.

Signature:

lighten(amount?: number): Color;

Parameters

Parameter Type Description
amount number (Optional) The amount to lighten by. The valid range is 0 to 100. Default value: 10.

Returns:

Color