[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] left-over pixels in pygame.draw.circle?
- To: pygame-users@xxxxxxxx
- Subject: [pygame] left-over pixels in pygame.draw.circle?
- From: "Hugo Arts" <hugo.yoshi@xxxxxxxxx>
- Date: Wed, 25 Jun 2008 18:02:01 +0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Wed, 25 Jun 2008 12:02:12 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=lzpNgAVHOUsGqJA50/zCrF9OI/0SHR8e5UyFSjgx97s=; b=PaMpyjKCY281NwJIwRiAHokOULE452c4UA7pk7j5AkeoW6ApSykYGvFtGOpygikQfQ QARtpze4YmRkW1PdyhSDRwXMfSCn13MdbUTUvPmxoFxrQ65iXbNrQx2EiF/Vbb/4yEwg oyqkXNgEMNFf8pwKzc2O+xLtSBnkNTrt8XfRk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=e2ejjTXolqqALO2NHpyUbiLea6ukGTJHGF22bf1OTTjnElYCyGNUW0eliTcYkcc1g2 4yYL3HA0mBc3MedHdLVCemTF8h2nqo81XW2GyoWGW/BUahHQl59QN2vP8X56PkSk//Ol LBWqS/qCWfizNAWO/Bx4YFwBwjQkyipPawK/g=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
I've been getting strange results in pygame.draw.circle and pygame.draw.arc:
if I specify a (non-zero) width for the circle/arc the resulting image is not drawn properly.
A strange pattern of pixels remains its previous color on the target surface. This does not occur if I completely fill the circle/arc
I've put up an image that might explain things more clearly. It is the pygame window resulting from this code:
>>> import pygame
>>> screen = pygame.display.set_mode((100, 100))
>>> pygame.draw.circle(screen, (255, 255, 255), (50, 50), 40, 20)
<rect(30, 30, 40, 40)>
>>> pygame.display.update()
here's the link to the image: http://img355.imageshack.us/img355/3488/circlehh4.png
I tried this both on 1.7.1 and 1.8.0 (I was still running 1.7.1, thought that upgrading might fix it), and it happens on both versions.
I am running this on a Linux box.