[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] creating a sprite image in code



Casey Duncan wrote:
Here's an example that creates a white circle with diameter "size" with a transparent background:

[snip sample code]
Also, note that there are functions in pygame.image that allow you to load images from stringbuffers.
So if you have the image you want already, store it as a stringbuffer and load it into a surface that way.
(That's an alternative to drawing your images in code like other people have suggested)
-Luke