FilterCompositeOperator Enum

How a CompositePrimitive combines its two inputs: the operator of feComposite of SVG.

public enum FilterCompositeOperator

Remarks

With A the first input and B the second one, colors multiplied by their alpha Aa and Ba.

Fields

NameValueDescription
Over0A over B: A + B (1 - Aa).
In1The part of A inside B: A Ba.
Out2The part of A outside B: A (1 - Ba).
Atop3A inside B, over B: A Ba + B (1 - Aa).
Xor4What is in one input only: A (1 - Ba) + B (1 - Aa).
Lighter5The sum of the inputs, up to 1: min(A + B, 1).
Arithmetic6k1 A B + k2 A + k3 B + k4 for each component, clamped to the range from 0 to 1, and each color then limited to the alpha (CompositePrimitive.K1 to CompositePrimitive.K4).