An article and pseudocode implementation for Wu Anti-Aliased Lines, a fixed/floating point implementation of a line drawer from a Michael Abrash book:
I use it for my line function in my open-source phoenix tutorial app (https://github.com/apollolux/hello-phoenix)!
I dunno. You say it's better, but in your screenshot the lines look like dotted lines instead of straight, unbroken lines. The lines at the bottom of the linked page look good, though.
I probably should've highlighted the fact that Wu lines are for anti-aliased lines. Re my specific implementation, I wouldn't be surprised if I screwed something up along the way. :/
It looks like each row/collumn in the weaker direction is not heavy enough. Like it just needs a little tweaking.
Indeed, I screwed up my implementation. I passed the wrong colors to the plot function assuming that the multiplication was going to work a certain way; everything else was fine, though.
It is now fixed!
Sweet! That's some awesome stuff right there, :)
Looks much better!