Simple line editor implementing Bresenham's algorithm.