Skip to content

DrawTriangles

Defined in: sdk/src/render/draw.ts:86

Triangles a DrawAPI.triangles call draws: an x, y pair a vertex, three indices a triangle, and an r, g, b, a quadruple a vertex (0 to 1; absent, every vertex is white). buildPathGeometry makes this shape from a path.

optional colors?: ArrayLike<number>

Defined in: sdk/src/render/draw.ts:89


indices: ArrayLike<number>

Defined in: sdk/src/render/draw.ts:88


positions: ArrayLike<number>

Defined in: sdk/src/render/draw.ts:87