# BlendMode Documentation?

**URL:** <https://discourse.processing.org/t/blendmode-documentation/27451>\
**Category:** Project Guidance\
**Created:** [January 29, 2021, 2:24am UTC](https://discourse.processing.org/t/blendmode-documentation/27451 "2021-01-29T02:24:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tinywitchdraws](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@tinywitchdraws](https://discourse.processing.org/u/tinywitchdraws)\
**Post date:** [January 29, 2021, 2:24am UTC](https://discourse.processing.org/t/blendmode-documentation/27451/1 "2021-01-29T02:24:40Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ErraticGenerator](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/erraticgenerator/32/11304_2.png) [@ErraticGenerator](https://discourse.processing.org/u/ErraticGenerator)\
**Post date:** [January 29, 2021, 4:55pm UTC](https://discourse.processing.org/t/blendmode-documentation/27451/2 "2021-01-29T16:55:32Z")

</div>

didn’t look at the p5js source code, but here is the W3C specifications: [Compositing and Blending Level 1](https://www.w3.org/TR/compositing-1/#blending)

---

<div class="post-metadata">

**Author:** ![tinywitchdraws](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@tinywitchdraws](https://discourse.processing.org/u/tinywitchdraws)\
**Post date:** [January 30, 2021, 9:27pm UTC](https://discourse.processing.org/t/blendmode-documentation/27451/3 "2021-01-30T21:27:36Z")

</div>

Hey! Thanks for the reply-- I’ve found the w3 docs and [pegtop docs](http://www.pegtop.net/delphi/articles/blendmodes/) 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).
