I want to implement an effect similar to what you see in this clip of Contra.
When the boss takes damage, he flashes wildly with different colors.
A similar effect can be seen in this clip from the Messenger (with the addition of an outline).
I don't care how they did it in Contra or the Messenger. I want to achieve a similar effect, preferably with a shader using GLSL.
Any ideas on how to go about it?
The effect seems to alternate the sprites between red and blue palettes, but I'm not sure if palette swapping is an effective way to achieve this, especially since I don't have my art assets in gray scale.
Maybe a hue shift shader is a viable alternative? Or maybe there's another way.