import { number as n, alpha as s } from "../numbers/index.es.js";
import { sanitize as i } from "../utils/sanitize.es.js";
import { isColorString as p, splitColor as e } from "./utils.es.js";
import { clamp as f } from "../../../../../../../../motion-utils@12.36.0/node_modules/motion-utils/dist/es/clamp.es.js";
const l = (r) => f(0, 255, r), o = {
  ...n,
  transform: (r) => Math.round(l(r))
}, h = {
  test: /* @__PURE__ */ p("rgb", "red"),
  parse: /* @__PURE__ */ e("red", "green", "blue"),
  transform: ({ red: r, green: t, blue: a, alpha: m = 1 }) => "rgba(" + o.transform(r) + ", " + o.transform(t) + ", " + o.transform(a) + ", " + i(s.transform(m)) + ")"
};
export {
  o as rgbUnit,
  h as rgba
};
//# sourceMappingURL=rgba.es.js.map
