Phaser API Documentation

  Version: 
setDisplaySize(width, height)

Description:

Sets the display size of this Shape.

Calling this will adjust the scale.

Parameters:

name type description
width number

The display width of this Shape.

height number

The display height of this Shape.

Returns:
Description:

This Shape instance.

Examples:
Since: 3.53.0