import Utils from "./dist-utils-index.js";
import channels from "./dist-channels-reusable.js";
import Color from "./dist-color-index.js";
import change from "./dist-methods-change.js";
const rgba = (r, g, b = 0, a = 1) => {
  if (typeof r !== "number")
    return change(r, { a: g });
  const channels$1 = channels.set({
    r: Utils.channel.clamp.r(r),
    g: Utils.channel.clamp.g(g),
    b: Utils.channel.clamp.b(b),
    a: Utils.channel.clamp.a(a)
  });
  return Color.stringify(channels$1);
};
export {
  rgba as default
};
//# sourceMappingURL=dist-methods-rgba.js.map
