How about once more option in the "Blend mode" dropdown menu, and a textfield:
two variables: in and out.blend mode: [custom]V]
(blablabla)
Here's this syntax applied to existing modes:
I suggest the whole thing being static, i.e. calculated once, otherwise may get too slow :Pignore: out
replace: in
50/50: in*.5+out*.5
maximum: max(in,out)
additive: in+out
sub1: out-in
sub2: in-out
multiply: in*out
minimum: min(in,out)
XOR is unavalible - until AVS has a function or it.
Every other pixel and every other line can be done but it's pretty complex and slow :P.
Adjustable will be only useful if this thing will be dynamicly calculated (not static).
Also separate formulas for each channel (RGB) can be optional 🙂
I think this will help a lot to do such things as gradient overlays [in*x+out*(1-x)]; color tricks and frames. Well, maybe not. What does the community think?