[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] multi-width aalines and aacircles

That was what I saw when I first drew the filled polygon first. Reversing the operation cleaned it up some, removing the holes. The circle still has holes, but not so noticeable. But then this is just from two quick test programs with large shapes.


pymike wrote:
I've drawn aalines over polygons before, and it doesn't always look right.


Look closely at the edges :)

On Wed, Mar 25, 2009 at 2:09 PM, Lenard Lindstrom <len-l@xxxxxxxxx <mailto:len-l@xxxxxxxxx>> wrote:

    The results actually look good though, if one first draws the
    outline, then the filled version. Circles not quit so good, but
    better than with no anti-aliasing.


    RB[0] wrote:

        You could do a filled polygon and then an aa one around it...
        But I think then you'd be getting a lot slower...

        On Wed, Mar 25, 2009 at 1:44 PM, Lenard Lindstrom
        <len-l@xxxxxxxxx <mailto:len-l@xxxxxxxxx>
        <mailto:len-l@xxxxxxxxx <mailto:len-l@xxxxxxxxx>>> wrote:

           The aa polygon is not filled, and the filled polygon does
        no aa.


           René Dudfield wrote:

               good idea.

               there's an aa-polygon in sdl gfx

               On Wed, Mar 25, 2009 at 5:38 PM, Greg Ewing
        <mailto:greg.ewing@xxxxxxxxxxxxxxxx>>> wrote:
Lenard Lindstrom wrote:

Yes, but we still need an aaline algorithm with
Find an aa polygon algorithm and then use it to
                   draw line-shaped polygons.


Lenard Lindstrom