Phaser API Documentation

batchFillTriangle(x0, y0, x1, y1, x2, y2, currentMatrix, parentMatrix)


Pushes a filled triangle into the vertex batch.

Triangle factors in the given transform matrices before adding to the batch.


name type description
x0 number

Point 0 x coordinate.

y0 number

Point 0 y coordinate.

x1 number

Point 1 x coordinate.

y1 number

Point 1 y coordinate.

x2 number

Point 2 x coordinate.

y2 number

Point 2 y coordinate.

currentMatrix Phaser.GameObjects.Components.TransformMatrix

The current transform.

parentMatrix Phaser.GameObjects.Components.TransformMatrix

The parent transform.