see for example https://en.m.wikipedia.org/wiki/Bresenham%27s_line_algorithm
see the pseudocode, i was implementing some raster algos when i found myself aux anges so close to py. i guess it was written in prehistoric times with the author trying to simplify stuffs Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ > -- https://mail.python.org/mailman/listinfo/python-list