Source code for Xiaolin Wu's line algorithm in C?

horseyguy picture horseyguy · Dec 14, 2009 · Viewed 13.1k times · Source

I'm looking for a nice and efficient implementation of Xiaolin Wu's anti-aliased line drawing algorithm in C, does anyone have this code they could share with me?

Thanks

Answer

Gregory Pakosz picture Gregory Pakosz · Dec 14, 2009

Wikipedia has pseudo code.

Google has many examples like this one or this one. And your question reminded me this nice article on antialiasing.

EDIT: It's time to discover Hugo Helias's website if you don't know it already.