phaser - v4.0.0-rc.4
    Preparing search index...
    • Takes a snapshot of an area from the current frame displayed by a WebGL canvas.

      This is then copied to an Image object. When this loads, the results are sent to the callback provided in the Snapshot Configuration object.

      Parameters

      • sourceContext: WebGLRenderingContext

        The WebGL context to take a snapshot of.

      • config: SnapshotState

        The snapshot configuration object.

      Returns void