"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../numbers/index.mjs.js"),e=require("../utils/sanitize.mjs.js"),s=require("./utils.mjs.js"),t=require("../../../../../../motion-utils/dist/es/clamp.mjs.js");const a={...r.number,transform:r=>Math.round((r=>t.clamp(0,255,r))(r))},i={test:s.isColorString("rgb","red"),parse:s.splitColor("red","green","blue"),transform:s=>{let{red:t,green:i,blue:n,alpha:o=1}=s;return"rgba("+a.transform(t)+", "+a.transform(i)+", "+a.transform(n)+", "+e.sanitize(r.alpha.transform(o))+")"}};exports.rgbUnit=a,exports.rgba=i;
//# sourceMappingURL=rgba.mjs.js.map
