xyz method Null safety

Chalk xyz(
  1. num x,
  2. num y,
  3. num z
)

Creates chalk with foreground color defined from XYZ color space parameters. https://en.wikipedia.org/wiki/CIE_1931_color_space

Implementation

Chalk xyz(num x, num y, num z) {
  var rgb = ColorUtils.xyz2rgb(x, y, z);
  return makeRGBChalk(rgb[0], rgb[1], rgb[2]);
}