graphics(x, y, group) → {Phaser.Graphics}
Creates a new Graphics object.
Parameters
| Name | Type | Argument | Default | Description | 
|---|---|---|---|---|
x |  number |  <optional> |  0 | The x coordinate of the Graphic. The coordinate is relative to any parent container this object may be in.  |  
y |  number |  <optional> |  0 | The y coordinate of the Graphic. The coordinate is relative to any parent container this object may be in.  |  
group |  Phaser.Group |  <optional> |  Optional Group to add the object to. If not specified it will be added to the World group.  |  
Returns
The newly created graphics object.
- Source code: gameobjects/GameObjectFactory.js (Line 361)
 
Please login to continue.