Bresenham algorithm for a line interactivity: select starting point of a line and moving with mouse transfer ending points. Author Kunik Miroslav
Source code