[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Why doesn't this work?
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Why doesn't this work?
- From: Evan Kroske <e.kroske@xxxxxxxxx>
- Date: Sat, 8 Aug 2009 17:43:25 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sat, 08 Aug 2009 17:43:29 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=0d5WVgkqqbe/LW+fMnDKd61vsrZLhL3uh9qiHAPZG+8=; b=DC462hHLZkr+dawYqWp2xxVPSijWKRJiEVkmPtO4OzP3fAl2GQPuQ4uYPlaZ6k+rdk nlZ46ZaMjun1O0AoaQE9hShs97uj8o5cAT0xAYjItYJGUsGE1IFjmqg0cS+F9TIFumle VvkFyQRbfE1Uw3F6rBKrxdrtsgzsky1/6g90o=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=CpCbWTUoWz7sODU3eKggE9l3RtTTH0/rMnoqYJomRviEmAhWKNC3/CHymsBPivuj/y DpZd2UogII4+22tk7paxoScu5G2Q2QSqx7x5aLGIhdL0HX1AxObK2r4UmNLz0FGG2qVg k1Y5Ez+Hh7TLFVp+kEuhiFzVhE3lR9BrhAn+4=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
I have another pygame2 problem. This code doesn't give me any errors, but it doesn't give me the circle I asked for, either:
red = pygame2.Color (255, 0, 0)
black = pygame2.Color (0, 0, 0)
shape_size = (250, 250)
video.init()
screen = video.set_mode(500,500)
screen.fill(red)
circle_surface = video.Surface(shape_size)
circle_surface.fill(red)
gfx.filled_circle(circle_surface, (20,20), 40, black)
circle_surface.flip()
screen.blit(circle_surface, (25, 25))
screen.flip()
Is the problem with my code or with my installation?
--
Evan Kroske
http://welcome2obscurity.blogspot.com/
The code, comments, and challenges of a novice
software developer desperate for attention.