Skip to content

anim-format (runtime format) / gridTriangles

Function: gridTriangles() ​

ts
function gridTriangles(cols, rows): number[];

triangles of a cols × rows grid of (cols + 1) × (rows + 1) points laid out row by row

Parameters ​

ParameterType
colsnumber
rowsnumber

Returns ​

number[]

HereSplash — 2D animation for the web