darken

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

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

Return

The darkened color as an HSL.

Parameters

amount

The amount to darken the color 0 to 1.