Phaser API Documentation

  Version: 
invertAlpha: boolean

Description:

Whether to invert the masks alpha.

If true, the alpha of the masking pixel will be inverted before it's multiplied with the masked pixel. Essentially, this means that a masked area will be visible only if the corresponding area in the mask is invisible.

Type:
boolean
Since: 3.1.2