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