import{__assign as r}from"../../../node_modules/tslib/tslib.es6.js";import{number as t,alpha as o}from"../numbers/index.js";import{sanitize as e,clamp as s}from"../utils.js";import{isColorString as n,splitColor as m}from"./utils.js";var a=s(0,255),f=r(r({},t),{transform:function(r){return Math.round(a(r))}}),i={test:n("rgb","red"),parse:m("red","green","blue"),transform:function(r){var t=r.red,s=r.green,n=r.blue,m=r.alpha,a=void 0===m?1:m;return"rgba("+f.transform(t)+", "+f.transform(s)+", "+f.transform(n)+", "+e(o.transform(a))+")"}};export{f as rgbUnit,i as rgba};
//# sourceMappingURL=rgba.js.map
