online bresenham https://gamedev.stackexchange.com/questions/81267/how-do-i-generalise-bresenhams-line-algorithm-to-floating-point-endpoints https://jsfiddle.net/6x7t4q1o/5