Bresenham excerpt