import m from "../../utils/type.js";
import p from "../../utils/unpack.js";
import c from "../../chroma.js";
import o from "../../Color.js";
import t from "../input.js";
import h from "./hcg2rgb.js";
import i from "./rgb2hcg.js";
o.prototype.hcg = function() {
  return i(this._rgb);
};
const e = (...r) => new o(...r, "hcg");
c.hcg = e;
t.format.hcg = h;
t.autodetect.push({
  p: 1,
  test: (...r) => {
    if (r = p(r, "hcg"), m(r) === "array" && r.length === 3)
      return "hcg";
  }
});
export {
  e as hcg
};
//# sourceMappingURL=index.js.map
