PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Anti-aliased lines

Time for some programming fun...I was kinda curious on how one can make anti-aliased lines in a fast manner. With a function basically like this:

DrawLine(x1, y1, x2, y2, color)

Anyone want to take on the task...
Guess I could do a normal websearch aswell :)
IIRC Michael Abrash covers "Wu" anti-aliased lines in his Graphics Programming Black Book (available freely and legally on the net).


Should be a good place to start.


(Edited to add:
Try:
http://freespace.virgin.net/hugo.elias/ ... wuline.htm
)
Cheers,


Refractor
Thanks...