lighten

infix fun lighten(amount: Float = 0.2f): HSL

Lightens the color, through the HSL color space, by a given amount.

Return

The lightened color as an HSL.

Parameters

amount

The amount to lighten the color 0 to 1.