alpha

inline fun Int.alpha(@FloatRange(from = 0.0, to = 1.0) alpha: Float): Int

Modify the alpha channel of the color, and return the resulting color.

Return

the resulting color.

Parameters

alpha

the new alpha channel value, in the range 0.0f, 1.0f.