Skip to content

getAlpha()

Return the alpha (transparency) component of the color.

color.getAlpha()

Returns

return alpha

Value Type Description
alpha int The opacity, from 0 (fully transparent) to 255 (fully opaque).