function rgbToRgba(rgbValue) {
  var rgb = /rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(rgbValue);
  return rgb ? ("rgba(" + (rgb[1]) + ",1)") : rgbValue;
}
function rgbToRgba(rgbValue) {
  var rgb = /rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(rgbValue);
  return rgb ? ("rgba(" + (rgb[1]) + ",1)") : rgbValue;
}
function rgbToRgba ( rgbValue ) { var rgb = / rgb\((\d+,\s*[\d]+,\s*[\d]+)\) / g . exec ( rgbValue ) ; return rgb ? ( "rgba(" + ( rgb [ 1 ] ) + ",1)" ) : rgbValue ; }
Colors
Colors
Converts a rgb value to a rgba value