Phaser home
Phaser AE
Open source
Phaser 4
Download
Learn
Editor
Tools
Docs
Examples
News
Log in
Examples
/
Textures
/
Canvas Textures
Phaser 4.1.0
Phaser 4 examples
Canvas Textures
7
examples
1
folder
Folders
1
Dwitter
4 examples
Examples
3
Canvas Texture Composite Operations
Demonstrates how to use HTML5 Canvas global composite operations on a Canvas Texture to create effects like masking and erasing.
Canvas Texture Rotation
Create a dynamic canvas texture using the Canvas API and demonstrate that it can be rotated and transformed just like a regular static image.
Create Canvas Texture
Demonstrates how to create a dynamic texture from a Canvas element, draw to its 2D context using standard API calls, and update the texture at runtime.