Bresenham\'s Line Algorithm


/ Published in: JavaScript
Save to your folder(s)

Code obtained from a [stackoverflow question](http://stackoverflow.com/questions/4672279/bresenham-algorithm-in-javascript). This is a javascript implementation of the [Bresenham line algorithm](http://en.wikipedia.org/wiki/Bresenham's_line_algorithm). Given two points, this function will return an array of coordinates which go from point A to point B, one step at a time.

URL: http://stackoverflow.com/questions/4672279/bresenham-algorithm-in-javascript

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.