tint

infix fun tint(amount: Float = 0.2f): RGB

Tints the color, using a linear interpolation between the original color and white in the RGB color space, by a given amount.

Return

The tinted color as an RGB.

Parameters

amount

The amount to tint the color 0 to 1.