Phaser API Documentation

  Version: 
beginCapture([width], [height])

Description:

Binds the WebGL Renderers Render Target, so all drawn content is now redirected to it.

Make sure to call endCapture when you are finished.

Parameters:

name type arguments description
width number <optional>

Optional new width of the Render Target.

height number <optional>

Optional new height of the Render Target.

Examples:
Since: 3.50.0