saturate

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

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

Return

The saturated color as an HSL.

Parameters

amount

The amount to saturate the color 0 to 1.