import "../../utils/type.js";
import b from "../../utils/unpack.js";
const { max: s } = Math, k = (...m) => {
  let [o, c, n] = b(m, "rgb");
  o = o / 255, c = c / 255, n = n / 255;
  const t = 1 - s(o, s(c, n)), r = t < 1 ? 1 / (1 - t) : 0, a = (1 - o - t) * r, e = (1 - c - t) * r, p = (1 - n - t) * r;
  return [a, e, p, t];
};
export {
  k as default
};
//# sourceMappingURL=rgb2cmyk.js.map
