Phaser API Documentation

  Version: 
resize(width, height)

Description:

Resizes the properties used to describe the viewport.

This method is called automatically by the renderer during its resize handler.

Parameters:

name type description
width number

The new width of this WebGL Pipeline.

height number

The new height of this WebGL Pipeline.

Returns:
Description:

This WebGLPipeline instance.

Since: 3.0.0