MZ Change Damage Popup Color?

Hello! I'm still playing around in the core JS scripts
How can I change the damage popup color it returns?

I've been trying tocode this script call:
$gameParty.members[$gameVariable.value(1)].gainHp(10); $gameParty.members[$gameVariable.value(1)].startDamagePopup(); $gameParty.members[$gameVariable.value(1)].clearResult();
Is there a way I can reference and modify the damage popup color from this?
I was thinking about ColorManager.damageColor() but I don't know JS enough.
Any help is appreciated c:
The sprite object for damage popup is found in rmmz_sprites.js

Changing the color can be done by changing the blendColor, adding a pixi filter (Color Matrix or any other that can do so) or changing the color tone.

A new instance of Sprite_Damage is created under this function:
Code:
Sprite_Battler.prototype.createDamageSprite

You can then change the sprite blend color by setting a rgba value. (This is an Array of four values)
eg:
Code:
sprite._blendColor = [0, 0, 0, 255] //Results in a black blend color of max alpha value.

Then you have to pass in a refresh call

Code:
sprite._updateColorFilter(); //may not be necessary but if the blend color does not update, try this

and check to make sure that rpg maker doesn't reset that blend color anywhere. It's not something I've tested in that regard for MZ just yet.

Good luck!

Original thread: https://forums.rpgmakerweb.com/threads/change-damage-popup-color.141821/