[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Fill a Rect object with color?
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Fill a Rect object with color?
- From: Ian Mallett <geometrian@xxxxxxxxx>
- Date: Sat, 7 Nov 2009 10:45:42 -0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sat, 07 Nov 2009 13:46:05 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=zYRsoCc/3ox1eVQ8634kz1J5C9GRsaV8ZFc9QD4v6hA=; b=riDCO3QGPHBNdmJ4FE717SGThJXC+zZ47EIDjEGyHgI0jsU+3QwT0rnhDw1UJTPRMk qTGLFrZYqgdoQhDueUt0Y8Oj6Fd2yvHdrETaF+v1xFPprlNlpl2Jj1vVRkjvLXiJrf5n +MepY6Y63vYB3OW1nfeezRD7gt1N4pQOIh3NY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=rCcl6lOOiPDGy4oBhJK2lr8nQ1r0HdBNDFDQ+eqj6sfgTTa/Q3MR9BSDElShOFYjiv TU6k9amAWARpJYD0oPEiRRMathq7MtyeI2a8KfQ5gd3jecwlrJG8RAqdE8Q+f9ZF9gW4 JRJxbMDJjPxF1KRyrrBe94lrZ4QBKJdlfD0/g=
- In-reply-to: <530501.62369.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- References: <530501.62369.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
I don't think rect objects were meant for that. You could go:
rect = a rect object
pygame.draw.rect(surface,color,rect,0)
Ian