colorMultiply

fun Int.colorMultiply(value: Float): Int

Multiplies the color components (besides alpha), darkening it.

Parameters

value

A value between 0 (white becomes black) and 1 (no effect).