Changing colour of a surface without overwriting transparency
Changing colour of a surface without overwriting transparency Question: I want to change the colour of a rect dynamically during runtime. Currently set_colour is filling all of the pixels of the surface with a single colour value. This works, but an issue arises when a method like set_outline is called, which modifies the transparency of …