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