colorAlpha

fun Int.colorAlpha(alpha: Int): Int

Returns the color with the new alpha value.


fun Int.colorAlpha(alpha: Float): Int

Returns the color with the new alpha value.

Parameters

alpha

How transparent the color is, from 0 (totally transparent) to 1 (totally opaque).