grayscale static method

List<double> grayscale()

Implementation

static List<double> grayscale() {
  const double lumR = 0.2126;
  const double lumG = 0.7152;
  const double lumB = 0.0722;
  return [
    lumR,
    lumG,
    lumB,
    0,
    0,
    lumR,
    lumG,
    lumB,
    0,
    0,
    lumR,
    lumG,
    lumB,
    0,
    0,
    0,
    0,
    0,
    1,
    0
  ];
}