Sprite Flash

This might be a nooby question but im not really that familiar with javascript and im still learning...

Question: How do you make a specific sprite flash for a specific duation and color? I remember doing it in VXAce like this:

@sprite.flash(Color.new(255,255,255), 60)tried using

this._sprite.startFlash([255,255,255],60);didn't seem to work...
Looking briefly at the code, it appears flashing is only in a coupe of classes by default, Sprite_Animation and Sprite_Damage. If you want it added to any sprite, it can be done, but you'll need a plugin for it.

Original thread: https://forums.rpgmakerweb.com/threads/sprite-flash.51211/