Blinking/Flashing Moving NPC's?

Is there a way to have a butterfly change colors while moving?
two possibilities: either edit the sprite to contain different colors on different animation frames, or make two variants of the sprite and have the event switch between them (how to switch depends on what way you're using to move the event)

Original thread: https://forums.rpgmakerweb.com/threads/blinking-flashing-moving-npcs.67289/