Phaser home
Phaser AE
Open source
Phaser 4
Download
Learn
Editor
Tools
Docs
Examples
News
Log in
Examples
/
Display
/
Masks
Phaser 4.1.0
Phaser 4 examples
Masks
5
examples
Examples
5
Container Bitmap Mask
Demonstrates how to apply a bitmap mask to a Container, effectively masking all of its children simultaneously using the filters API.
Dynamic Texture as a Bitmap Mask
Demonstrates how to use a Dynamic Texture as a bitmap mask applied to an image via the external filter system.
Geometry Mask From Shape
Demonstrates how to apply a hidden Shape object as a geometry mask for an image and animate the mask's rotation using a tween.
Inverted Graphics Mask
Demonstrates how to use a Graphics object as a bitmap mask. In this example, a rectangle is used to punch an inverted hole through a semi-transparent overlay to reveal the image underneath.
Shared Bitmap Mask
Demonstrates how to apply a single bitmap mask to multiple images simultaneously using the external filter system.