gri2d
v1.0.0
Published
A small library to work with 2d arrays
Downloads
8
Readme
Gri2D
This is a small library to work with 2d arrays.
Usage
//Initialize a 12x8 grid filled with 1
var grid = new Gri2D(12,8,1);
//Get the cell value at 5,3 coordinates
grid.set(5,3);
//Set each cell to its index
grid.each(function(el,i,array){
return i;
});