Skip to content

setAlpha()

Set the alpha (transparency) component of the color.

Parameters

Once an object color has been created, you can use the following function:

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