darker

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

Makes this Color darker by the given percent.

Return

the new color

Parameters

percent

to darken the color


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

Makes this color darker by the given percent.

Return

the new color

Parameters

percent

to darken the color


fun ColorPaint.darker(percent: Float = 0.5f): ColorPaint(source)

Makes this ColorPaint darker by the given percent.

Parameters

percent

to darken the paint