Phaser API Documentation

  Version: 
setInvertAlpha([value])

Description:

Sets the invertAlpha property of this Geometry Mask.

Inverting the alpha essentially flips the way the mask works.

This is a WebGL only feature.

Parameters:

name type arguments Default description
value boolean <optional> true

Invert the alpha of this mask?

Returns:
Description:

This Geometry Mask

Examples:
Since: 3.17.0