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