import o from "../../chroma.js";
import t from "../../Color.js";
import m from "../input.js";
import p from "../../utils/type.js";
import c from "../../utils/unpack.js";
import i from "./cmyk2rgb.js";
import e from "./rgb2cmyk.js";
t.prototype.cmyk = function() {
  return e(this._rgb);
};
const y = (...r) => new t(...r, "cmyk");
Object.assign(o, { cmyk: y });
m.format.cmyk = i;
m.autodetect.push({
  p: 2,
  test: (...r) => {
    if (r = c(r, "cmyk"), p(r) === "array" && r.length === 4)
      return "cmyk";
  }
});
export {
  y as cmyk
};
//# sourceMappingURL=index.js.map
