Package 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 Details

    • distanceBetween

      float distanceBetween(ReadonlyTColor a, ReadonlyTColor b)
      Computes the distance between 2 colors.
      Parameters:
      a -
      b -
      Returns:
      distance