MagicWandSettings.ColorComparison

public static interface MagicWandSettings.ColorComparison

Delegate for Color comparison with a defined threshold.

Methods

MethodDescription
invoke(Color p1, Color p2, int threshold)Delegate for Color comparison with a defined threshold.

invoke(Color p1, Color p2, int threshold)

public abstract boolean invoke(Color p1, Color p2, int threshold)

Delegate for Color comparison with a defined threshold.

Parameters:

ParameterTypeDescription
p1ColorThe first color to compare.
p2ColorThe second color to compare.
thresholdintThe allowed threshold for color difference.

Returns: boolean - true if color comparison satisfies the threshold; otherwise, false.