import o from "../Color.js";
import p from "../utils/type.js";
import i from "../interpolator/index.js";
const h = (e, t, a = 0.5, ...n) => {
  let r = n[0] || "lrgb";
  if (!i[r] && !n.length && (r = Object.keys(i)[0]), !i[r])
    throw new Error(`interpolation mode ${r} is not defined`);
  return p(e) !== "object" && (e = new o(e)), p(t) !== "object" && (t = new o(t)), i[r](e, t, a).alpha(
    e.alpha() + a * (t.alpha() - e.alpha())
  );
};
export {
  h as default
};
//# sourceMappingURL=mix.js.map
