Phaser API Documentation

  Version: 

Member of: Phaser.Curves.Path

draw(graphics, [pointsTotal])

Description:

Draws all Curves in the Path to a Graphics Game Object.

Parameters:

name type arguments Default description
graphics Phaser.GameObjects.Graphics

The Graphics Game Object to draw to.

pointsTotal number <optional> 32

The number of points to draw for each Curve. Higher numbers result in a smoother curve but require more processing.

Returns:
Description:

The Graphics object which was drawn to.

Since: 3.0.0
Source: src/curves/path/Path.js (Line 270)