xy2int static method

int xy2int(
  1. double x,
  2. double y
)

Converts xy coordinates in the CIE 1931 color space to an integer.

Implementation

static int xy2int(double x, double y) {
  final List<int> rgb = xy2rgb(x, y);
  return rgb2int(rgb[0], rgb[1], rgb[2]);
}