Package toxi.color
Class ProximityComparator
java.lang.Object
toxi.color.ProximityComparator
- All Implemented Interfaces:
Comparator<ReadonlyTColor>
Compares two colors by their distance to the given target color.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ProximityComparator
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<ReadonlyTColor>
-