Skip to content

setAlpha()

Set the alpha (transparency) component of the color.

color.setAlpha(alpha)

Parameters

color.setAlpha(alpha)
Parameter Type Default Description
alpha int required The new opacity, from 0 (fully transparent) to 255 (fully opaque).