Re: [pygame] antialiased circles

2010-03-14 Thread Marcus von Appen
On, Sun Mar 14, 2010, Thiago Chaves wrote:

> Speaking of which. Are we expected to use Pygame1.9 or Pygame2 for the Pyweek?
> 
> -Thiago

Does Pyweek enforce one? If not choose whatever suits you most.

Regards
Marcus


pgp6cpsAf08QJ.pgp
Description: PGP signature


Re: [pygame] antialiased circles

2010-03-14 Thread Thiago Chaves
Speaking of which. Are we expected to use Pygame1.9 or Pygame2 for the Pyweek?

-Thiago

On Thu, Mar 4, 2010 at 8:50 AM, René Dudfield  wrote:
> On Thu, Mar 4, 2010 at 2:48 AM, Luke Paireepinart
>  wrote:
>> gfxdraw is from pygame2, I assume?
>> Thanks Rene, I'll give it a try.  Pygame2 looks quite awesome.  Is the 1.9
>> branch gonna keep being maintained when pygame2 is official?  it breaks
>> backwards compatibility, I guess, are you just going to keep it with a
>> different name so they can be installed together?
>>
>
> No need to use pygame2 for gfxdraw, it's in pygame.
>
> yeah, pygame is still going.  But might be renamed to pygame10... or pygame12 
> ;)
>


Re: [pygame] antialiased circles

2010-03-03 Thread René Dudfield
On Thu, Mar 4, 2010 at 2:48 AM, Luke Paireepinart
 wrote:
> gfxdraw is from pygame2, I assume?
> Thanks Rene, I'll give it a try.  Pygame2 looks quite awesome.  Is the 1.9
> branch gonna keep being maintained when pygame2 is official?  it breaks
> backwards compatibility, I guess, are you just going to keep it with a
> different name so they can be installed together?
>

No need to use pygame2 for gfxdraw, it's in pygame.

yeah, pygame is still going.  But might be renamed to pygame10... or pygame12 ;)


Re: [pygame] antialiased circles

2010-03-03 Thread Marcus von Appen
On, Thu Mar 04, 2010, Luke Paireepinart wrote:

> gfxdraw is from pygame2, I assume?
> Thanks Rene, I'll give it a try.  Pygame2 looks quite awesome.  Is the 1.9
> branch gonna keep being maintained when pygame2 is official?

Yes. Currently there are no plans to drop pygame.

> it breaks
> backwards compatibility, I guess, are you just going to keep it with a
> different name so they can be installed together?

They already use different names, (pygame --> package pygame, pygame2 -->
package pygame2), so they can be installed at the same time without
influencing each other.

Regards
Marcus


pgpnr4kni8rfK.pgp
Description: PGP signature


Re: [pygame] antialiased circles

2010-03-03 Thread Luke Paireepinart
gfxdraw is from pygame2, I assume?
Thanks Rene, I'll give it a try.  Pygame2 looks quite awesome.  Is the 1.9
branch gonna keep being maintained when pygame2 is official?  it breaks
backwards compatibility, I guess, are you just going to keep it with a
different name so they can be installed together?

On Wed, Mar 3, 2010 at 2:41 AM, René Dudfield  wrote:

> Hi,
>
> please see:  pgyame.gfxdraw.aacircle(surface, x, y, r, color): return None
>
> cheers,
>
> On Wed, Mar 3, 2010 at 1:33 AM, Luke Paireepinart
>  wrote:
> >
> > I'd like to draw antialiased circles but it doesn't seem to be included
> in Pygame.Is this feature included in Pygame 2?
> >
> > I found an example for drawing antialiased circles by using a bunch of AA
> lines but it was pretty slow and also didn't fill in the circle.
> > What would you guys recommend I do?  The last post I found on this was
> that SDL_GFX contains an AACircle method but it's not exposed.
> > I don't think PIL can draw antialiased circles either.
> >
> > I can pre-generate the images for the most part so it doesn't matter
> too-too much if it's slow (won't affect runtime performance), but it would
> help to speed up the pre-generation.  I can just store them on disk but it
> will take up more space than I'd like.  So I have alternate solutions that I
> can use already, I just thought someone might have a quick fix that I just
> hadn't thought of.
> >
> > Hmm, it just occurred to me that I could render a circle at double or
> triple the resolution then do a bicubic resampled rotozoom, that would
> antialias it, wouldn't it?  Would that antialias still work if the
> background were Alpha? (i.e. does rotozoom interpolate alpha when it
> resizes?)  I'll investigate this, but still send this post in case anyone
> has some insight.
> >
> > Thanks for your time guys!
> > -Luke
>


Re: [pygame] antialiased circles

2010-03-03 Thread René Dudfield
Hi,

please see:  pgyame.gfxdraw.aacircle(surface, x, y, r, color): return None

cheers,

On Wed, Mar 3, 2010 at 1:33 AM, Luke Paireepinart
 wrote:
>
> I'd like to draw antialiased circles but it doesn't seem to be included in 
> Pygame.    Is this feature included in Pygame 2?
>
> I found an example for drawing antialiased circles by using a bunch of AA 
> lines but it was pretty slow and also didn't fill in the circle.
> What would you guys recommend I do?  The last post I found on this was that 
> SDL_GFX contains an AACircle method but it's not exposed.
> I don't think PIL can draw antialiased circles either.
>
> I can pre-generate the images for the most part so it doesn't matter too-too 
> much if it's slow (won't affect runtime performance), but it would help to 
> speed up the pre-generation.  I can just store them on disk but it will take 
> up more space than I'd like.  So I have alternate solutions that I can use 
> already, I just thought someone might have a quick fix that I just hadn't 
> thought of.
>
> Hmm, it just occurred to me that I could render a circle at double or triple 
> the resolution then do a bicubic resampled rotozoom, that would antialias it, 
> wouldn't it?  Would that antialias still work if the background were Alpha? 
> (i.e. does rotozoom interpolate alpha when it resizes?)  I'll investigate 
> this, but still send this post in case anyone has some insight.
>
> Thanks for your time guys!
> -Luke


Re: [pygame] antialiased circles

2010-03-02 Thread Marcus von Appen
On, Wed Mar 03, 2010, Luke Paireepinart wrote:

> I'd like to draw antialiased circles but it doesn't seem to be included in
> Pygame.Is this feature included in Pygame 2?

Yes, it is included in pygame2, and uses the SDL_gfx library-

Regards
Marcus


pgpM1s6RfLawi.pgp
Description: PGP signature


Re: [pygame] antialiased circles

2010-03-02 Thread Luke Paireepinart
 Thanks for the quick response, Ian.  Been a fan of your work for a while,
hope to see you in PyWeek next month!  I'll give the lib a try and if I end
up needing to / being able to optimize it somehow I'll let you know.  I'll
also post if I come up with a better solution but I'll likely just use your
lib.
Thanks again!
-Luke

On Tue, Mar 2, 2010 at 8:34 PM, Ian Mallett  wrote:

> Hi--I wrote some code that makes an anti-aliased circle in my PyGame
> Graphics 
> Library.
> It essentially does a box blur on a circle.
>


Re: [pygame] antialiased circles

2010-03-02 Thread Ian Mallett
Hi--I wrote some code that makes an anti-aliased circle in my PyGame
Graphics 
Library.
It essentially does a box blur on a circle.