function hsbToRgb(hsb, maxSB = 100) {
  const h = hsb[0];
  const s = hsb[1];
  const b = hsb[2];
  const sDivided = s / maxSB;
  const bDivided = b / maxSB;
  const k = (n) => (n + h / 60) % 6;
  const f = (n) => bDivided * (1 - sDivided * Math.max(0, Math.min(k(n), 4 - k(n), 1)));
  return [Math.round(255 * f(5)), Math.round(255 * f(3)), Math.round(255 * f(1))];
}
@description Convert hsb color to rgb.
@param {Array} hsb - Hue, saturation, brightness.
@param {number} maxSB - Max saturation and brightness.
@returns {Array} [ red, green, blue ] object.
@example const [r, g, b] = hsbToRgb([1, 2, 3]);