desaturate

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

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

Return

The desaturated color as an HSL.

Parameters

amount

The amount to desaturate the color 0 to 1.