MZ VXA-Style Blurry Battleback

In VX Ace, if you start a fight without a specified battleback, the game would automatically take a snapshot of the screen and spin it around, creating a radial blur, then use that as background.

I would like to replicate this in MZ. Although it's possible to simply generate a blurry background myself and save that as a battleback image, I would prefer to automate this process.
You're in luck! I made this for MV a while back and decided to go ahead and port it to MZ.

I make no guarantees that this will work in your project, or that it is programmed or optimized well.

If you want to tweak it, just edit the script file - I didn't bother making parameters for anything. The documentation for the PIXI stuff is here: https://filters.pixijs.download/main/docs/PIXI.filters.RadialBlurFilter.html

EDIT:
I just looked at VX out of curiosity and I think I got the filters reversed - try flipping the order of these two in the code and see which you like better.
JavaScript:
this._backgroundSprite.filters = [this._filters.reflection0, this._filters.radial0];

You might also want to adjust the amplitude numbers to something lower, like 5:
JavaScript:
this._filters.reflection0.amplitude = [20, 20];
Sweet, thanks man. 🤘😎

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/vxa-style-blurry-battleback.145660/