UI.color = function(name){
  var obj = {};
  if(name in UI.color.colors){
    obj.color = UI.color.colors[name]
  }
  obj.__proto__ = UI.color.prototype;
  return obj;
};
UI.color.colors = {
  'carrot':[230, 126, 34,1], // all colors in [R,G,B,A]
};
UI.color.prototype.RGBA = function(){
  var arr = this.color;
  return 'rgba('+arr[0]+','+arr[1]+','+ arr[2]+','+arr[3]+')';
}

UI.color = function(name){
  var obj = {};
  if(name in UI.color.colors){
    obj.color = UI.color.colors[name]
  }
  obj.__proto__ = UI.color.prototype;
  return obj;
};
UI.color.colors = {
  'carrot':[230, 126, 34,1], // all colors in [R,G,B,A]
  'pumpkin':[211, 84, 0,1],
  'turqoise':[26, 188, 156,1],
  'grean_sea':[22, 160, 133,1],
};

UI.color.prototype.RGBA = function(){
  var arr = this.color;
  return 'rgba('+arr[0]+','+arr[1]+','+ arr[2]+','+arr[3]+')';
}

Update color.js