Phaser API Documentation

  Version: 
setAlpha(alpha)

Description:

Sets the global alpha of the current context.

Parameters:

name type description
alpha number

The new alpha to use, where 0 is fully transparent and 1 is fully opaque.

Returns:
Description:

This CanvasRenderer object.

Since: 3.0.0