Phaser API Documentation

  Version: 
width: number

Description:

The width of the Rectangle, i.e. the distance between its left side (defined by x) and its right side.

Type:
number
Default: 0
Since: 3.0.0