Bresenham\'s Line Algorithm

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

Code obtained from a [stackoverflow question]( This is a javascript implementation of the [Bresenham line algorithm]('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.


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.