Enumeration Case

CGBlendMode.difference

Declaration

case difference = 10

Discussion

Subtracts either the source image sample color from the background image sample color, or the reverse, depending on which sample has the greater brightness value. Source image sample values that are black produce no change; white inverts the background color values.