[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] bugs in pygame.draw.circle



Pete,

still having some problems with ellipses.
Enclosed patch "draw-patch.pat" fixes the obvious typo.
    
Still some oddities with the returned rectangle.
The script "ellipse.py" draws a series of ellipses with
the returned bounding box in outline. Also reveals above
bug.

Included a script "interactive.py" that is handy for
quickly playing with circles and rectangles.

cd to folder containing script and use this :

"python -i interactive.py"

The output window and console may need moving about a bit
as refresh isn't happening.

For example try:

>> rc = ellipse(20,100)
>> rect(rc)                # problem at top and left
>> ellipse(20,100)         # shows that bottom and right are ok


In combination with "ZoomIn" (e.g. MS VC++ 6.0 Tools)
the pixels become visible.

Sorry I don't have more time to help,

best regards,
John.
PS isn't Python great!

patch&scripts.zip