Blending & Compositing

Blend modes and Porter-Duff operators running in WebAssembly

Two questions decide what happens when one image is drawn over another. Blend modes answer what color appears where they overlap. Compositing operators answer which parts of each image survive.

Base destination · Cb, αb

Click or drop an image to replace

Overlay source · Cs, αs

Click or drop an image to replace

Result

Hover to inspect a pixel

Pixel inspector

Hover the result to see the math for one pixel.

In code


			
WASM loading…