withAlpha

fun Color.withAlpha(alpha: Float): Color

Returns the version of this color based on the specified alpha.