color2xy static method

List<double> color2xy(
  1. Color color
)

Converts a Flutter Color object to xy coordinates in the CIE 1931 color space.

Returns a list of doubles representing the xy values. x, y, brightness

Implementation

static List<double> color2xy(Color color) {
  return rgb2xy(color.red, color.green, color.blue);
}