drawColoredTriangles

open fun drawColoredTriangles(colour: Int, coordinates: Array<Float>)(source)

Renders a list of triangles.

Parameters

colour

the color to render the triangles in

coordinates

The coordinates of the triangles, encoded as 3 vertices consisting of 6 floats arranged as [x0, y0, x1, y1, x2, y2]