hwb method

Chalk hwb(
  1. num hue,
  2. num whiteness,
  3. num blackness
)

Creates chalk with foreground color defined from HWB (Hue, Whiteness and Blackness) color space parameters. https://en.wikipedia.org/wiki/HWB_color_model

Implementation

Chalk hwb(num hue, num whiteness, num blackness) {
  var rgb = ColorUtils.hwbTorgb(hue, whiteness, blackness);
  return makeRGBChalk(rgb[0], rgb[1], rgb[2]);
}