Hi, I’m working on a little project that plays with blend modes, and I’ve kind of gotten to the point where I’ll need to know the specific math that p5js uses for their blend modes (ie. MULTIPLY=A*B, LIGHTEST=max(A,B) etc…). I’ve looked on the github but can’t seem to find the math for it actually written out. Does anyone know where I can find the math that’s used?
didn’t look at the p5js source code, but here is the W3C specifications: Compositing and Blending Level 1
Hey! Thanks for the reply-- I’ve found the w3 docs and pegtop docs and a few others which are really helpful, but my main concern is that some of the formulae are from a long time ago and I don’t know that they’re the formulae that p5js uses. I just want to be able to find the accurate p5 docs to double check that the formulas work (ie. multiply is pretty universal, but overlay, soft-light/hard-light, color dodge, and burn can change a bit).