Phaser API Documentation

  Version: 
Filter
This is a beta release of our new docs system. Found an issue?
Please tell us about it in the #📖-newdocs-feedback channel on the Phaser Discord
Namespace: Zoom
Phaser.Scale.Zoom

Members

<static, constant> MAX_ZOOM: number
Focus
Focus

Description:

Calculate the zoom value based on the maximum multiplied game size that will fit into the parent, or browser window if no parent is set.

Type:
number
Since: 3.16.0
Focus
Focus
<static, constant> NO_ZOOM: number
Focus
Focus

Description:

The game canvas will not be zoomed by Phaser.

Type:
number
Since: 3.16.0
Focus
Focus
<static, constant> ZOOM_2X: number
Focus
Focus

Description:

The game canvas will be 2x zoomed by Phaser.

Type:
number
Since: 3.16.0
Focus
Focus
<static, constant> ZOOM_4X: number
Focus
Focus

Description:

The game canvas will be 4x zoomed by Phaser.

Type:
number
Since: 3.16.0
Focus
Focus