Bresenham algorithm for a line 2

$$$APPLET

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

Bresenham algorithm for a line[4]

Source code