Creating "Set Screen Tone" from RPG 2K in RPG Maker MV

Hello, this is a weird question that I couldn't find any information about. Essentially, I have been using RPG Maker MV to develop my game, and I would like to set screen tone like in RPG Maker 2000. The problem is, they don't remotely work the same, it's as if MV has a default blending mode of overlay that cannot be switched off. (Yes when testing this I properly translated the percentages to factors of 255.) Is there any way to mimic 2K's effect in MV? or does anyone understand exactly what 2k is doing so that I may find some alternative way to replicate it in MV?

This kind of overlay effect is used frequently in games like Yume 2kki, so I thought this may have some modern solution, aside from completely switching engines.

The following image shows 2k (left, desired) and MV (right) so you can see how the same values differ. I have attempted to recreate the left with other values, but it seems the "blending mode" problem always has one factor looking wrong (saturation, lightness, etc). Thanks in advance!
2024-10-15 16.30.21.png
So a few things...
1) Just cause we're all on the RM forums, we might not be intimately familiar with how other engines worked, so it might help to describe the differences between the 2 engines more clearly.

2) I noticed that you are not using the same pictures for the comparison. inherently, color values will affect both images differently. To really confirm differences in color mixing, it would be better that you use the same image for A/B comparison.

3) It's not totally relevant to the main problem so a description isn't entirely necessary, but to assume we all know about 2 Yume 2 ikki is a poor assumption, so if the game in question is relevant to what you are trying to achieve, please describe it's function clearly and include pictures of it if it's relevant.

4) Is it absolutely imperative that the color mixing is EXACTLY identical as someone else's game?
Yes you are right. They are complete different.
RM2k (or maybe 2k3?) uses percentage, but MV just adds the rgb value directly.

MV:
newcolor = oldcolor + tintcolor

2K:
if percentage<100%
newcolor = oldcolor * percentage

if percentage>100%
newcolor = oldcolor + (255 - oldcolor) * (percentage-100%)


Edit*

This should simulate the RM2k styled screen tone.
JavaScript:
ToneFilter.prototype.adjustTone = function(r, g, b) {
    r = (r || 0).clamp(-255, 255) / 255;
    g = (g || 0).clamp(-255, 255) / 255;
    b = (b || 0).clamp(-255, 255) / 255;


    var R=1,G=1,B=1;
    //rm 2k tint
    R = r<0?(1+r):(1-r);
    r = r<0?0:r;
    G = g<0?(1+g):(1-g);
    g = g<0?0:g;
    B = b<0?(1+b):(1-b);
    b = b<0?0:b;


    if (r !== 0 || g !== 0 || b !== 0||R !== 1 || G !== 1 || B !== 1) {
        var matrix = [
            R, 0, 0, r,  0,
            0, G, 0, g, 0,
            0, 0, B, b, 0,
            0, 0, 0, 1, 0
        ];


        this._loadMatrix(matrix, true);
    }
};
Yes you are right. They are complete different.
RM2k (or maybe 2k3?) uses percentage, but MV just adds the rgb value directly.

MV:
newcolor = oldcolor + tintcolor

2K:
if percentage<100%
newcolor = oldcolor * percentage

if percentage>100%
newcolor = oldcolor + (255 - oldcolor) * (percentage-100%)


Edit*

This should simulate the RM2k styled screen tone.
JavaScript:
ToneFilter.prototype.adjustTone = function(r, g, b) {
    r = (r || 0).clamp(-255, 255) / 255;
    g = (g || 0).clamp(-255, 255) / 255;
    b = (b || 0).clamp(-255, 255) / 255;


    var R=1,G=1,B=1;
    //rm 2k tint
    R = r<0?(1+r):(1-r);
    r = r<0?0:r;
    G = g<0?(1+g):(1-g);
    g = g<0?0:g;
    B = b<0?(1+b):(1-b);
    b = b<0?0:b;


    if (r !== 0 || g !== 0 || b !== 0||R !== 1 || G !== 1 || B !== 1) {
        var matrix = [
            R, 0, 0, r,  0,
            0, G, 0, g, 0,
            0, 0, B, b, 0,
            0, 0, 0, 1, 0
        ];


        this._loadMatrix(matrix, true);
    }
};
You are a lifesaver, thank you. I don't know why i didn't think of comparing the code myself but you made this so easy to understand. It is working perfectly now!

Original thread: https://forums.rpgmakerweb.com/threads/creating-set-screen-tone-from-rpg-2k-in-rpg-maker-mv.172619/