Pardon the mess, Play My Code is in beta!

READY TO PLAY?
CLICK TO LOG IN!

sign up - lost password

setAlpha

.setAlpha( alpha )

Sets the alpha used when drawing onto this Image. This is a value from 0.0 to 1.0.

.setAlpha( alpha ) { ... }

'setAlpha' can also take a block, allowing you to only alter the alpha value for that duration.

This Image object is returned, allowing you to chain this function with other drawing calls.

See Also