colorAdd

fun Int.colorAdd(value: Double): Int
fun Int.colorAdd(value: Float): Int

Adds to the color components (besides alpha), lightening it.

Parameters

value

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