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

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



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
<len-l@xxxxxxxxx>