Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
makes an array of arrays matrix out of x,y values
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
index.js
package.json

README.md

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: 4,
//    y: 4,
//    x: 0 }
Something went wrong with that request. Please try again.