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