code: function setHex(color, hex) {
      hex = hex.replace(/^#/, "");
      var num = parseInt(hex, 16);
  
      color[0] = (num >> 16 & 255) / 255;
      color[1] = (num >> 8 & 255) / 255;
      color[2] = (num & 255) / 255;
      color[3] = 1
  
      return color;
  }
docs: Updates a color based on html hex string e.g. #FF0000 -> 1,0,0,1
  @param  {Array} color   - RGBA color array [r,g,b,a] to update
  @param  {String} hex    - html hex string #RRGGBB (# is optional)
  @return {Array} - updated RGBA color array [r,g,b,a] (0..1)