When I replace the textLayer PGraphics in my test code as posted above with the ball.png you provided, then I get the top result with options 3 and 4 and I get the bottom result with option 2. I think this can be explained by the fact that option 2 blends against a background (as is always the case in Photoshop) while options 3 and 4 blend against transparency. So that's comparing apples and oranges. The similar cases 2 and Photoshop actually do produce the same result. Although that conclusion doesn't solve your problem. I think the best you can do is work towards your desired Processing output. Try using blendMode. Also, to get finer control over the exact blend math you could write a shader. There are shaders with the Photoshop blending modes available.
↧