I’m making a program with the Pygame that changes the overall colours of inserted pictures. It works fine, but now I’d like to change specific portions of the picture – only black. Is there a method that changes the colours of all black pixels to an alternative colour?
I’ve already tried using surface.set_at(), surface.get_at() as well as a few others. Help please? 🙂
may be you should try PixelArray
from the documentation :
PixelArray.replace