code: function (rgb) {
    var round = Math.round;
    return "rgba(" + [round(rgb.r), round(rgb.g), round(rgb.b), +rgb.opacity.toFixed(2)] + ")";
  }
docs: Converts RGB values to a hex representation of the color var rgb = function (r, g, b, o) { if (isFinite(o)) { var round = math.round; return "rgba(" + [round(r), round(g), round(b), +o.toFixed(2)] + ")"; } return "#" + (16777216 | b | (g << 8) | (r << 16)).toString(16).slice(1); };