forked from: ブレゼンハム

http://luberth.com/plotter/content.htm
bresenham line plotter