::

enum CompositeOp

Values
clear Clear destination. Fa = Fb = 0.
src Copy source as-is to destination. Fa = 1, Fb = 0.
dst Leave destination as-is. Fa = 0, Fb = 1.
over Copy source over destination. Fa = 1, Fb = 1-Aa.
under Copy source under destination. Fa = 1-Ab, Fb = 1.
inside Copy source to destination, but limited to where the destination is. Fa = Ab, Fb = 0.
inReverse Leave destination as is, but only where source was. Fa = 0, Fb = Aa.
outside Copy source to destination, but limited to where destination is not. Fa = 1-Ab, Fb = 0.
outReverse Leave destination as is, but only where source has not been. Fa = 0, Fb = 1-Aa.
atop Copy source over destination, but only where destination is. Keep destination. Fa = Ab, Fb = 1-Aa.
atopReverse Copy destination over source, but only where source is. Keep source. Fa = 1-Ab, Fb = Aa.
xor Take only parts where either source or destination, but not both are. Fa = 1-Ab, Fb = 1-Aa.
add simply add contributions of both source and destination. The resulting color values are limited to the permissible color range, and clipped to the maximal value, if exceeded. Fa = 1, Fb = 1.
saturate Fa = min(1,(1-Ab)/Aa), Fb = 1
Values' Details
clear
clear,
Description
Clear destination. Fa = Fb = 0.
src
src,
Description
Copy source as-is to destination. Fa = 1, Fb = 0.
dst
dst,
Description
Leave destination as-is. Fa = 0, Fb = 1.
over
over,
Description
Copy source over destination. Fa = 1, Fb = 1-Aa.
under
under,
Description
Copy source under destination. Fa = 1-Ab, Fb = 1.
inside
inside,
Description
Copy source to destination, but limited to where the destination is. Fa = Ab, Fb = 0.
inReverse
inReverse,
Description
Leave destination as is, but only where source was. Fa = 0, Fb = Aa.
outside
outside,
Description
Copy source to destination, but limited to where destination is not. Fa = 1-Ab, Fb = 0.
outReverse
outReverse,
Description
Leave destination as is, but only where source has not been. Fa = 0, Fb = 1-Aa.
atop
atop,
Description
Copy source over destination, but only where destination is. Keep destination. Fa = Ab, Fb = 1-Aa.
atopReverse
atopReverse,
Description
Copy destination over source, but only where source is. Keep source. Fa = 1-Ab, Fb = Aa.
xor
xor,
Description
Take only parts where either source or destination, but not both are. Fa = 1-Ab, Fb = 1-Aa.
add
add,
Description
simply add contributions of both source and destination. The resulting color values are limited to the permissible color range, and clipped to the maximal value, if exceeded. Fa = 1, Fb = 1.
saturate
saturate,
Description
Fa = min(1,(1-Ab)/Aa), Fb = 1
Top of Page