lib/helpers.js
function toRgba(color, opacity = false) {
	color = tinycolor(color);

	if (opacity) {
		color.setAlpha(calcOpacity(opacity));
	}

	return color.toRgbString();
}
function toRgba(color, opacity = false) {
	color = tinycolor(color);

	if (opacity) {
		color.setAlpha(calcOpacity(opacity));
	}

	return color.toRgbString();
}
function toRgba ( color , opacity = false ) { color = tinycolor ( color ) ; if ( opacity ) { color . setAlpha ( calcOpacity ( opacity ) ) ; } return color . toRgbString ( ) ; }
Convert color values to RGBa

@param  {string}  color
@param  {string|boolean} opacity
@return {string}
Convert color values to RGBa