How can a pygame image be colored?

Posted by Juicy on Game Development See other posts from Game Development or by Juicy
Published on 2012-03-31T23:40:30Z Indexed on 2012/03/31 23:43 UTC
Read the original article Hit count: 147

Filed under:

I'm writing a 2d particle system for a game in Pygame[1].

For the particles, I have an image surface loaded from a file -- basically a white primitive drawn over a transparent background.

I'd like the particle engine to emit variously colored particles, but I'm not sure how to tell Pygame to color the surface.

I've looked through what passes for documentation, but I'm having trouble finding anything.

[1] Yeah, I don't really like Pygame, but my course insists I write this project in Python.

© Game Development or respective owner

Related posts about pygame