Package toxi.color
Interface DistanceProxy
- All Known Implementing Classes:
CMYKDistanceProxy
,HSVDistanceProxy
,RGBDistanceProxy
public interface DistanceProxy
A proxy interface to support the sorting of colors in different color spaces.
Used by
ColorList.sortByDistance(DistanceProxy, boolean)
.-
Method Summary
Modifier and TypeMethodDescriptionfloat
Computes the distance between 2 colors.
-
Method Details
-
distanceBetween
Computes the distance between 2 colors.- Parameters:
a
-b
-- Returns:
- distance
-