0.0.2 • Published 11 years ago

gridlayer v0.0.2

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

Returns an array of arrays, or ray-rays. Useful for making checkerboards layouts, at least. Maybe something else.

Notice: I stole the toMatrix algroithm from the node module stats-array.

npm install gridlayer

gridlayer = require('gridlayer')

var x = grid(5,5)	

x[0][4] 

//   an object at index (0,4) q.v:
//  { zerone: true,
//    ordinal: 14,
//    y: 4,
//    x: 2 }