Demo for How to Use a Shader to Dynamically Swap a Sprite's Colors
If the above demo doesn't work, try the WebGL version (25MB).
« created with Unity »