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

Re: [pygame] Bug in pygame.draw.ellipse



I was actually wrong. It seems even worse. Pyjama is not capable to draw ellipses with odd sizes at all. It will always be the same ellipse as x-1, y-1.
E.g. an elipse with size 3,3 will result in the same ellipse as the one with size 2,2.
Can anyone reproduce this?

On Mon, Feb 9, 2015 at 1:36 PM, leo kirotawa <kirotawa@xxxxxxxxx> wrote:
Since pygame is bind for SDL , have you tried in pure SDL ?  Maybe
it`s bug from there :)

On Mon, Feb 9, 2015 at 10:05 AM, diliup gabadamudalige
<diliupg@xxxxxxxxx> wrote:
> The mysteries of pygame.....
>
> On 9 Feb 2015 16:25, "Florian Krause" <siebenhundertzehn@xxxxxxxxx> wrote:
>>
>> Hi there,
>>
>> there seems to be a bug in pygame.draw.ellipse, where if either x or y of
>> size is odd, then the resulting eclipse will have a real size of x-2, y-2.
>>
>> So basically, to draw an ellipse that has 3 x 3 pixels on the screen, one
>> needs to use pygame.ellispe.draw with a size of 5 x 5.
>>
>> Best,
>> Florian
>>
>>
>>
>> --
>> www.fladd.de - Homepage of Florian Krause



--

----------------------------------------------
Leônidas S. Barbosa (Kirotawa)
blog: corecode.wordpress.com



--
www.fladd.de - Homepage of Florian Krause