darken

fun Color.darken(ratio: Float = 1.1f): Color

Darken the color by the given ratio.

Receiver

Color to darken.

Return

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

Parameters

ratio

the ratio to darken the color by.