import n from "../utils/index.js";
import c from "../channels/reusable.js";
import l from "../color/index.js";
import m from "./change.js";
const h = (a, r, e = 0, o = 1) => {
  if (typeof a != "number")
    return m(a, { a: r });
  const t = c.set({
    r: n.channel.clamp.r(a),
    g: n.channel.clamp.g(r),
    b: n.channel.clamp.b(e),
    a: n.channel.clamp.a(o)
  });
  return l.stringify(t);
};
export {
  h as default
};
