You might be able to go like: img = pygame.Surface((100, 100)) pygame.draw.circle(img, (255, 255, 255), (0, 0), 50) pygame.draw.circle(img, (0, 0, 0), (20, 20), 30) img.set_colorkey((0, 0, 0), pygame.RLEACCEL)
That *might *work. What it would do is draw a circle to an image, and a smaller black one over it. The img would then set a colorkey and would replace the black in the image with alpha. I haven't tested this yet but it might work :-) Cheers, On Thu, May 1, 2008 at 11:37 AM, Lenard Lindstrom <[EMAIL PROTECTED]> wrote: > Hugo Ruscitti wrote: > > > Hi, we found a posible bug in "pygame.draw.circle" function using > > pygame1.8 (we don't try with > > other versions). > > > > When we set a circle border, the "pygame.draw.circle" function puts > > some little pixels > > like noise. This is a screenshot of the posible bug: > > > > > > http://www.losersjuegos.com.ar/incoming/descargas/20080501/circle_border.png > > > > and this is a sample code: > > > > --- %< --- > > import pygame > > > > WHITE = (255, 255, 255) > > position = 100, 100 > > screen = pygame.display.set_mode((320, 240)) > > > > pygame.draw.circle(screen, WHITE, position, 50, 20) > > pygame.display.flip() > > pygame.time.wait(1000) > > --- %< --- > > > > note that when remove the 50 value of border, the circle will draw fine: > > > > > > http://www.losersjuegos.com.ar/incoming/descargas/20080501/circle_fill.png > > > > Thanks! > > > > > > > This is because a thick circle is created by drawing a series of single > pixel-width circles. I don't know what can be done about this. > > -- > Lenard Lindstrom > <[EMAIL PROTECTED]> > > -- - pymike (http://pymike.aftermatheffect.com/)
