import color_default from "../color/index.js";
import rgba_default from "./rgba.js";
var mix_default = (n, r, i = 50) => {
	let { r: a, g: o, b: s, a: c } = color_default.parse(n), { r: l, g: u, b: d, a: f } = color_default.parse(r), p = i / 100, m = p * 2 - 1, h = c - f, g = ((m * h === -1 ? m : (m + h) / (1 + m * h)) + 1) / 2, _ = 1 - g;
	return rgba_default(a * g + l * _, o * g + u * _, s * g + d * _, c * p + f * (1 - p));
};
export { mix_default as default };
