Phaser home
Phaser AE
Open source
Phaser 4
Download
Learn
Editor
Tools
Docs
Examples
News
Log in
Examples
/
Snapshot
Phaser 4.1.0
Phaser 4 examples
Snapshot
4
examples
Examples
4
Game Snapshot
Demonstrates how to capture a snapshot of the entire game canvas using the renderer's snapshot method and display the resulting image in the DOM.
Snapshot Area
Capture a specific rectangular portion of the game canvas using snapshotArea and convert it into a new game texture or DOM image.
Snapshot Pixel
Capture the color of a single pixel from the game canvas at a specific coordinate using the renderer's snapshotPixel method.
Snapshot to Base64
Learn how to capture a snapshot of the current game frame and convert it into a Base64 data URL by drawing the result to a Canvas Texture.