Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 482
horseyguy Avatar asked Dec 14 '09 14:12

horseyguy


1 Answers

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.

like image 63
Gregory Pakosz Avatar answered Oct 12 '22 10:10

Gregory Pakosz