triangle

fun ShapeRenderer.triangle(pointA: Vector2, pointB: Vector2, pointC: Vector2)

See ShapeRenderer.triangle.

Parameters

pointA

position of point A.

pointB

position of point B.

pointC

position of point C.


fun ShapeRenderer.triangle(pointA: Vector2, pointB: Vector2, pointC: Vector2, colorA: Color, colorB: Color, colorC: Color)

See ShapeRenderer.triangle.

Parameters

pointA

position of point A.

pointB

position of point B.

pointC

position of point C.

colorA

color of A corner.

colorB

color of B corner.

colorC

color of C corner.