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