[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pygame] bugs in pygame.draw.circle
Doug Partridge writes:
>
> try using a radius of 0, (filled circle). I would test your code but I am
> a work and don't have python here.
Ah. I see what you mean.
>>> retval = pygame.draw.circle(screen, (255, 255, 255), (100, 280), 50, 0)
>>> print retval
None
So filled circles, with a WIDTH of zero, drawn anywhere on the screen,
incorrectly return None.
>>> retval = pygame.draw.circle(screen, (255, 255, 255), (100, 100), 0, 2)
Fatal Python error: (pygame parachute) Floating Point Exception
Aborted
And here, we see that if I accidently set the RADIUS to zero, and try
to draw anywhere on the screen, I get the parachute. Strange.
Pete, any thoughts?
--
David Clark
Futility at #pygame on irc.openprojects.net
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org