1.0.0 • Published 10 years ago

grid-walk v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

grid-walk

Walk along line through 2D grid.

Code and algorithm came from

Usage

var gw = require('grid-walk')
var walker = gw(cellWidth, cellHeight)

walker.walk(lineStart, lineEnd, function(coord) {
  // do something with coord
})

Install

npm install grid-walk

License

MIT