Hi all.

As the result of this thread , here is the first version of my AALine procedure. Please give some opinions.

Regards.
Posted on 2003-04-25 06:37:29 by JohnFound
Nice work as always, John ! :alright:
Posted on 2003-04-25 06:45:51 by JCP
Looks good until you resize the window, then it ceases to look antialiased.
Posted on 2003-04-25 08:48:32 by iblis
In fact, it is, but it tends to get worse and worse when dealing with large lines...
Posted on 2003-04-25 08:59:08 by JCP
Not with large lines but with lines with small slope. This is because the algorithm is "light" anti-aliasing, i.e. I change only 4 pixels imediately near the stairs of the line. The true ("heavy") anti-aliasing makes very "fat" lines with width about of 3 pixels, But I want to make some "fine" drawings.
Posted on 2003-04-25 09:03:48 by JohnFound
if anyone wants to get really fancy, think about the pixel being 3 different dots in a triangle, one for each gun.... then you could complement the colors in such a way the mind
sees the opposite color so the intense color in the triangle is closer to fill the steps :grin:
Posted on 2003-04-25 11:27:55 by Brad