Hi all.

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

Regards.

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

Regards.

Nice work as always, John ! :alright:

Looks good until you resize the window, then it ceases to look antialiased.

In fact, it is, but it tends to get worse and worse when dealing with large lines...

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.

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:

sees the opposite color so the intense color in the triangle is closer to fill the steps :grin: