Phaser API Documentation

  Version: 
SnapshotCallback(snapshot)

Parameters:

name type description
snapshot HTMLImageElement | Phaser.Display.Color

Either a Color object if a single pixel is being grabbed, or a new Image which contains a snapshot of the canvas contents.

Type:
function