Phaser API Documentation

  Version: 
setSize(width, [height])

Description:

Changes the size of this Canvas Texture.

Parameters:

name type arguments description
width number

The new width of the Canvas.

height number <optional>

The new height of the Canvas. If not given it will use the width as the height.

Returns:
Description:

The Canvas Texture.

Since: 3.7.0