Nice! On Feb 3, 2014 10:29 AM, "Jeffrey Kleykamp" <jeffrey.kleyk...@gmail.com> wrote:
> Hi everyone, > > I'm new here so please be nice. > > I created new versions of pygame.draw.circle, arc, ellipse that don't > suffer from the moire hole problem. I don't know if there's been some > discussion or if a patch has already been submitted regarding this, but my > version fixes them. See the picture that's attached. I also included > functions to draw regular polygons and wedges. > > The strategy my circle draw function uses is to draw regular polygons with > high number of sides so you can't tell it that it's actually a polygon. > Similarly for other draw functions. > > I wanted to use aalines but it doesn't fill the polygon. If you look at > the picture the first column is the current draw function, the second is > the new draw function, the third is a composite of the new draw and > aalines, the last is only the aalines. > > Running the file runs the test code that made the attached picture. Sorry > I didn't comment much. I'll go back an fix it if there's interest in this > code. > > I also couldn't find the pygame.draw source code to look at, so it would > be nice if someone pointed me to where that was. Thanks! > > Sincerely, > Jeffrey > > -- > > Jeffrey Kleykamp >