code: function asRgbArray(color, bw) {
          color = toRgbArray(color);
          return bw
              ? invertToBW(color, bw, true)
              : color.map(c => 255 - c);
      }
docs: Generates inverted (opposite) version of the given color, as a RGB array.
  @param {Color} color - Color to be inverted.
  @param {BlackWhite|boolean} [bw] - Whether to amplify the inversion to
  black or white. Provide an object to customize black/white colors.
  @returns {RGB} - RGB array representation of the inverted color.