Change the color of the battle transition flash

Hey folks,

I was wondering if there is a way to change the color of the white flash which occurs before battle? Or, if not, a way to remove it? I found a script that removed the whole effect (including the zoom), but I like the zoom and would like to keep it if possible.

The sudden bright flash is problematic for those with epilepsy, so I am looking for ways to tone it down or toggle it.

Thanks!
There are a few plugins that allow you to change or customize the battle transition.

Aside from that, the default function is:
Code:
Scene_Map.prototype.startFlashForEncounter = function(duration) {
    const color = [255, 255, 255, 255];
    $gameScreen.startFlash(color, duration);
};

You can change the RGBa value after const color to be whatever you like.

Original thread: https://forums.rpgmakerweb.com/threads/change-the-color-of-the-battle-transition-flash.173224/