Hi, I'm looking for a fast way of "flood-filling" an image, like changing
all green to red and such (akin to PHP's imageColorSet() function if that
helps). The current method I'm looking at is locking the surface, getting
every pixel on the surface one by one and then setting it if it's a certain
color, and unlocking, but even the documentation says that's going to be
slow (maybe it's fast enough with the new PyGame release?). There's a good
chance I might have missed something in pygame.display, but any suggestions
or pointing to some built-in thing would be appreciated.

Reply via email to