import a from "../color/index.js";
import C from "./rgba.js";
const j = (g, i, b = 50) => {
  const { r: m, g: h, b: l, a: n } = a.parse(g), { r: p, g: w, b: d, a: s } = a.parse(i), r = b / 100, t = r * 2 - 1, c = n - s, o = ((t * c === -1 ? t : (t + c) / (1 + t * c)) + 1) / 2, e = 1 - o, f = m * o + p * e, u = h * o + w * e, x = l * o + d * e, z = n * r + s * (1 - r);
  return C(f, u, x, z);
};
export {
  j as default
};
