Phaser API Documentation

beginCapture([width], [height])


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

Make sure to call endCapture when you are finished.


name type arguments description
width number <optional>

Optional new width of the Render Target.

height number <optional>

Optional new height of the Render Target.

Since: 3.50.0