Interface ColorCoordinates


public interface ColorCoordinates
A 3D color space, where each color is represented by an x, y, and z coordinate, that contains methods for transforming from RGB24 (or ARGB32) color values.
  • Method Summary

    Modifier and Type
    Method
    Description
    default double
    distance(int color1, int color2)
     
    int
    getX(int color)
     
    int
    getY(int color)
     
    int
    getZ(int color)
     
  • Method Details

    • getX

      int getX(int color)
      Returns:
      the first coordinate of the provided color
    • getY

      int getY(int color)
      Returns:
      the second coordinate of the provided color
    • getZ

      int getZ(int color)
      Returns:
      the third coordinate of the provided color
    • distance

      default double distance(int color1, int color2)
      Returns:
      the Euclidean distance between the two provided colors, in this color space