toxi.color
Class HSVDistanceProxy

java.lang.Object
  extended by toxi.color.HSVDistanceProxy
All Implemented Interfaces:
DistanceProxy

public class HSVDistanceProxy
extends java.lang.Object
implements DistanceProxy

Implements the DistanceProxy interface to sort colors by HSV distance (used by ColorList.sortByDistance(DistanceProxy, boolean)).


Constructor Summary
HSVDistanceProxy()
           
 
Method Summary
 float distanceBetween(ReadonlyTColor a, ReadonlyTColor b)
          Computes the distance between 2 colors.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HSVDistanceProxy

public HSVDistanceProxy()
Method Detail

distanceBetween

public float distanceBetween(ReadonlyTColor a,
                             ReadonlyTColor b)
Description copied from interface: DistanceProxy
Computes the distance between 2 colors.

Specified by:
distanceBetween in interface DistanceProxy
Returns:
distance