Free tools & games for everyone
Free · No sign-up · No accounts
See how layer blend modes, opacity and layer masks work: the maths for two colours, and two layers blended on a picture.
| Tab | Move between colours, menus and boxes; the result updates as you change them |
|---|---|
| Drag on the picture | Paint the layer mask (when Layer mask is set to paint it yourself) |
The modes and their formulas follow the W3C Compositing and Blending Level 1 specification, the same definitions used by web browsers and close to those of photo and design programs (which sometimes differ in small ways, for example in soft light). Colours are worked from 0 to 1 in sRGB without gamma conversion, as the specification does. The top layer covers the bottom with coverage a = opacity × mask; the result is a × blend + (1 - a) × bottom. Hue, saturation, colour and luminosity use Lum = 0.3 R + 0.59 G + 0.11 B. Every pixel is computed by our own code, not by the browser's canvas modes. Photoshop and other names are trademarks of their owners; this lab is not affiliated with them.
A fresh daily puzzle every morning, and new tools added every month.
Browse every product