lighten

fun Color.lighten(ratio: Float = 1.0f): Color

Lighten the color by the given ratio.

Receiver

Color to lighten.

Return

Color The lightened color or the original color if the lightened color is not valid.

Parameters

ratio

the ratio to lighten the color by.