[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Unwanted blue pixels at edges of antialiased circles
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Unwanted blue pixels at edges of antialiased circles
- From: Marian Steinbach <marian@xxxxxxxxxx>
- Date: Sun, 17 Jul 2011 14:32:27 +0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sun, 17 Jul 2011 08:33:00 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=h6YGYLntuD7h5TLvJ/f7RJTdlhd+Fn0oSr+PsPEevyo=; b=uzD0v+qvJnxidGVrQP9FHvD4Ymc4VQYwDwMrIFbM5NqiUgbgeoeJqWkiQ98Ig+/uC7 Ekruduil2yA5d1POiukFOd4leiQKPLh6PjQ5CchYcmkA2CQaieMQbitu8iZG15ZFoXOq Su2Gw8WJdWgovP50OWOZg8Q3IXZpYi8xl8PPg=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi!
I'm new to pygame and just used it for the first time for data
visualization. See the result here: http://vimeo.com/26157684
The visualization consists of anti-aliased dots in various shades of
gray on a purple background.
Dark grey dots have unwanted blue pixels on their edges, which I
cannot explain. You can see them especially in the upper part of the
video.
Here is what I'm doing to draw the background and dots:
# canvas
screen = pygame.display.set_mode((width, height))
# background
self.screen.fill([47, 40, 54])
# dot
radius = 4
color = [64, 64, 64, 255]
pygame.gfxdraw.aacircle(screen, x, y, radius, color)
pygame.gfxdraw.filled_circle(screen, x, y, radius, color)
Any ideas where the blue pixels come from?
Thanks!
Marian