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

[pygame] Maybe a bug in pygame.draw.circle?



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!

-- 
Hugo Ruscitti
www.losersjuegos.com.ar