lighter

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

Makes this Color lighter by the given percent.

Return

the new color

Parameters

percent

to lighten the color


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

Makes this color lighter by the given percent.

Return

the new color

Parameters

percent

to lighten the color


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

Makes this ColorPaint lighter by the given percent.

Parameters

percent

to lighten the paint