Phaser API Documentation

  Version: 
getAspectRatio()

Description:

Gets the aspect ratio of the WebGLRenderer dimensions.

Returns:
Description:

The aspect ratio of the WebGLRenderer dimensions.

Type:
  • number
Examples:
Since: 3.50.0