The undocumented
REPLACE blend mode in PImage says it is like NORMAL in other software. I assume this is a reference to Photoshop (amongst other tools).
However, the REPLACE mode does not consider alpha channels at all... which "other" software does.
I am trying to figure out the algorithm for "NORMAL" blend mode when working with alpha. I think this would also be a useful thing to include in PImage.
Anyone know how to process those pixels to blend them? Here is a description of the output:
edit: have the answer in java-like-esque syntax so it is plug and play with processing would be preferable!
1