shade

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

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

Return

The shaded color as an RGB.

Parameters

amount

The amount to shade the color 0 to 1.