darker

fun Color.darker(percent: Float = 0.5f): Color

Makes this Color darker by the given percent.

Return

the new color

Parameters

percent

to darken the color


fun HslColor.darker(percent: Float = 0.5f): HslColor

Makes this color darker by the given percent.

Return

the new color

Parameters

percent

to darken the color