This article covers the mathematics behind the various blend modes such as screen blending, overlay blending, burn and dodge blending, etc. These blending operations are similar to what you use in image editors such as Photoshop and Gimp.