code: function (obj, values, section, container, brightnessSample) {
      var frag = document.createDocumentFragment();
  
      for (var i = 0; i < values.length; i += 1) {
        var e = document.createElement('div');
        e.className = "color";
        e.style.backgroundColor = values[i].hexString();
  
        if (values[i].hex === obj.hex) {
          e.className += " orig";
        }
  
        if (brightnessSample) {
          var brightness = values[i].getBrightness();
          e.textContent = brightness;
          e.style.color = (brightness < 50) ? "#fff" : "#000";
        }
  
        frag.appendChild(e);
      }
  
      container.appendChild( frag );
    }
docs: Helper Function