Phaser API Documentation

  Version: 
strokeTriangle(x0, y0, x1, y1, x2, y2)

Description:

Stroke a triangle with the given points.

Parameters:

name type description
x0 number

The x coordinate of the first point.

y0 number

The y coordinate of the first point.

x1 number

The x coordinate of the second point.

y1 number

The y coordinate of the second point.

x2 number

The x coordinate of the third point.

y2 number

The y coordinate of the third point.

Returns:
Description:

This Game Object.

Since: 3.0.0