Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD