getAlpha

open fun getAlpha(): Int(source)

Retrieves the alpha component of the current color.

Return

The alpha value, ranging from 0 (fully transparent) to 255 (fully opaque).