Phaser API Documentation

  Version: 
batchStrokePath(path, lineWidth, pathOpen, currentMatrix, parentMatrix)

Description:

Adds the given path to the vertex batch for rendering.

It works by taking the array of path data and calling batchLine for each section of the path.

The path is optionally closed at the end.

Parameters:

name type description
path Array.<Phaser.Types.Math.Vector2Like>

Collection of points that represent the path.

lineWidth number

The width of the line segments in pixels.

pathOpen boolean

Indicates if the path should be closed or left open.

currentMatrix Phaser.GameObjects.Components.TransformMatrix

The current transform.

parentMatrix Phaser.GameObjects.Components.TransformMatrix

The parent transform.