Phaser API Documentation

  Version: 
draw(graphics, [pointsTotal])

Description:

Draws this curve to the specified graphics object.

Parameters:

name type arguments Default description
graphics Phaser.GameObjects.Graphics

The graphics object this curve should be drawn to.

pointsTotal number <optional> 32

The number of intermediary points that make up this curve. A higher number of points will result in a smoother curve.

Returns:
Description:

The graphics object this curve was drawn to. Useful for method chaining.

Examples:
Since: 3.0.0