Blend Modes
Source: Blending Modes - By Dan Hollick (Clipped in Joplin)
Darkening and Lightening
- Darken / Lighten:
- Chooses each RGB component's lowest/highest value to create a new color
- Multiply / Screen:
- Normalize RGB components to 0-1
- Multiplies values together - which will produce a darker color.
- Screen inverts the resulting color
- Color Burn / Color Dodge:
- Normalize RGB components to 0-1
- Invert the bg color
- Divide by the fg color
- Invert the result
- Color Dodge switches fg and bg color
Contrast Blending
- Overlay
- For each RGB component
- If bg is light (> 127.5) then apply
- For each RGB component