withOpacity

fun Int.withOpacity(@IntRange(from = 0, to = 100) opacity: Int): Int

Assume that this Int is a color and apply opacity to it.