PEGTOP
 pegtop.net  >  delphi section  >  articles  >  blend modes  >  screen mode 

 delphi section 

 articles 
 blend modes 
 introduction 
 normal mode 
 average mode 
 multiply mode 
 screen mode 
 darken mode 
 lighten mode 
 difference modes 
 overlay mode 
 hard light mode 
 soft light mode 
 dodge modes 
 burn modes 
 quadratic modes 
 additive modes 
 interpolation mode 
 logical modes 
 RGB modes 
 HSL modes 
 opacity 
 dark modes 
 bright modes 
 final words 

 components 

 about me 

screen mode
Description:
The "opposite" to multiply mode. Both parameters are inverted, multiplied by each other, the result is inverted again. This returns a brighter result than both input parameters in most cases (except one of them equals 0). Completely black layers do not change the background at all (and vice versa) - completely white layers give a white result. The average of multiply and screen mode is exactly the average mode.

Formula:
f(a,b) = 1 - (1-a) * (1-b)



Advantage:
This mode is commutative (base and blend color can be swapped).

Code:
index | previous page | next page
 
© Copyright 2006 by PEGTOP Software