onLab method Null safety

Chalk onLab(
  1. num l,
  2. num a,
  3. num b
)

Creates chalk with background color defined from lab color space parameters. https://en.wikipedia.org/wiki/CIELAB_color_space#CIELAB

Implementation

Chalk onLab(num l, num a, num b) {
  var xyz = ColorUtils.lab2xyz(l, a, b);
  var rgb = ColorUtils.xyz2rgb(xyz[0], xyz[1], xyz[2]);
  return makeRGBChalk(rgb[0], rgb[1], rgb[2], bg: true);
}