You are here

Blending modes summary

Darken Modes

\(\mathit{Darken}(c_{f},c_{b})=\mathit{min}\left(c_{f},c_{b}\right)\)
\(\mathit{Multiply}(c_{f},c_{b})=c_{f}c_{b}\)
\(\mathit{ColorBurn}(c_{f},c_{b})=\left\{ \begin{array}{ll} 0 & \mbox{if }c_{f}=0\\ \mathit{max}\left(1-\frac{1-c_{b}}{c_{f}},0\right) & \mbox{if }c_{f}>0 \end{array}\right.\)

Lighten Modes

\(\mathit{Lighten}(c_{f},c_{b})=\mathit{max}\left(c_{f},c_{b}\right)\)
\(\mathit{Screen}(c_{f},c_{b})=1-(1-c_{f})(1-c_{b})\)
\(\mathit{ColorDodge}(c_{f},c_{b})=\left\{ \begin{array}{ll} 1 & \mbox{if }c_{f}=1\\ min\left(\frac{c_{b}}{1-c_{f}},1\right) & \mbox{if }c_{f}>0 \end{array}\right.\)
\(\mathit{LinearDodge}(c_{f},c_{b})=\mathit{min}\left(1,c_{f}+c_{b}\right)\)

Contrast modes

\(\begin{array}{ll} \mathit{Overlay}(c_{f},c_{b}) & =\left\{ \begin{array}{ll} 2c_{f}c_{b} & \mbox{if }c_{b}\leqslant0.5\\ 1-2(1-c_{f})(1-c_{b}) & \mbox{if }c_{b}>0.5 \end{array}\right.\\ & =\mathit{HardLight}(c_{f},c_{b})\\ & =c_{b}\mathit{Screen}(c_{f},c_{b})+(1-c_{b})\mathit{Multiply}(c_{f},c_{b}) \end{array}\)
\(\mathit{SoftLight}(c_{f},c_{b})=\left\{ \begin{array}{ll} (2c_{f}-1)(c_{b}-c_{b}^{2})+c_{b} & \mbox{if }c_{f}\leqslant0.5\\ (2c_{f}-1)(\sqrt{c_{b}}-c_{b})+c_{b} & \mbox{if }c_{f}>0.5 \end{array}\right.\)
\(\begin{aligned}\mathit{HardLight}(c_{f},c_{b}) & =\left\{ \begin{array}{ll} 2c_{f}c_{b} & \mbox{if }c_{f}\leqslant0.5\\ 1-2(1-c_{f})(1-c_{b}) & \mbox{if }c>0.5 \end{array}\right.\\ & =Overlay(c_{b},c_{f}) \end{aligned}\)
\(\mathit{VividLight}(c_{f},c_{b})=\left\{ \begin{array}{ll} \mathit{ColorBurn}(2c_{f},c_{b}) & \mbox{if }c_{f}\leqslant0.5\\ \mathit{ColorDodge}(c_{f},\frac{1}{2}c_{b}) & \mbox{if }c_{f}>0.5 \end{array}\right.\)
\(\mathit{LinearLight}(c_{f},c_{b})=\mathit{max}\left(0,\mathit{min}\left(1,2c_{f}+c_{b}-1\right)\right)\)
\(\mathit{PinLight}(c_{f},c_{b})=\mathit{max}\left(2c_{f}-1,\mathit{min}\left(c_{b},2c_{f}\right)\right)\)
\(\mathit{HardMix}(c_{f},c_{b})=\left\{ \begin{array}{ll} 0 & \mbox{if }c_{f}+c_{b}<1\\ 1 & \mbox{if }c_{f}+c_{b}\geqslant1 \end{array}\right.\)

Comparative modes

\(\mathit{Difference}(c_{f},c_{b})=\left\Vert c_{f}-c_{b}\right\Vert \)
\(\mathit{Exclusion}(c_{f},c_{b})=\left\Vert c_{f}+c_{b}-2c_{f}c_{b}\right\Vert \)