Phaser API Documentation

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

Description:

Resizes the drawing buffer to match that required by the Scale Manager.

Parameters:

name type arguments description
width number <optional>

The new width of the renderer.

height number <optional>

The new height of the renderer.

Returns:
Description:

This WebGLRenderer instance.

Examples:
Since: 3.0.0