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
 float distanceBetween(ReadonlyTColor a, ReadonlyTColor b)
          Computes the distance between 2 colors.
 

Method Detail

distanceBetween

float distanceBetween(ReadonlyTColor a,
                      ReadonlyTColor b)
Computes the distance between 2 colors.

Parameters:
a -
b -
Returns:
distance