[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Moire pattern in arc and circle
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Moire pattern in arc and circle
- From: "Ian Mallett" <geometrian@xxxxxxxxx>
- Date: Tue, 20 Jan 2009 10:00:27 -0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 20 Jan 2009 13:00:30 -0500
- 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:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ynttfZIwOd+lKyFWoVNAMLxWqyrnpyJ9a2+gv6wYE/c=; b=c0ySagxZ0NHsf8QSyAOE6j74W7Smh8AY0liedauNsq7wWKmW+hGasQ0XuI8T+9+GhZ lHTxg0eNby7IHNOzQ9FMg2doxJRgcon+7tgI5eOdNDHvd+Vu14M7IMLX6eohedSt70A+ p5/pDL6xTHBsU1r4KqpOvd0bT+fXobewLNd6g=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=NyhsbHWYi9ngRIVWvO0ZExb46GlatW9LFT7ZBMn7OF40RKs99sbENxLb7RLvuiZ0sX hARPwYMn9K59eJ0mT88IcA1Hxr+v6imAm/dxQDAbOwWDyTHpdmFofpZ5VlGB5w3q5GQw KBE+SOd0UwZ8TUduIt8nobAXFxOF8cfIm23Bc=
- In-reply-to: <5591393c0901200837o1eab1e9ib577700205f59117@xxxxxxxxxxxxxx>
- References: <5591393c0901200837o1eab1e9ib577700205f59117@xxxxxxxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
I'm pretty sure this problem has come up before. My solution is to
draw a circle on a surface, then use pygame.draw.polygon() to clean
off the parts you don't need. You can use colorkey-transparency as
well to get "cut-out" arcs.
Ian