"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const index = require("./dist-utils-index.cjs");
const reusable = require("./dist-channels-reusable.cjs");
const index$1 = require("./dist-color-index.cjs");
const change = require("./dist-methods-change.cjs");
const rgba = (r, g, b = 0, a = 1) => {
  if (typeof r !== "number")
    return change.default(r, { a: g });
  const channels = reusable.default.set({
    r: index.default.channel.clamp.r(r),
    g: index.default.channel.clamp.g(g),
    b: index.default.channel.clamp.b(b),
    a: index.default.channel.clamp.a(a)
  });
  return index$1.default.stringify(channels);
};
exports.default = rgba;
//# sourceMappingURL=dist-methods-rgba.cjs.map
