Package toxi.color
Class CMYKDistanceProxy
java.lang.Object
toxi.color.CMYKDistanceProxy
- All Implemented Interfaces:
DistanceProxy
Implements the
DistanceProxy
interface to sort colors by CMYK
distance (used by ColorList.sortByDistance(DistanceProxy, boolean)
).-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Computes the distance between 2 colors.
-
Constructor Details
-
CMYKDistanceProxy
public CMYKDistanceProxy()
-
-
Method Details
-
distanceBetween
Description copied from interface:DistanceProxy
Computes the distance between 2 colors.- Specified by:
distanceBetween
in interfaceDistanceProxy
- Returns:
- distance
-