import r from "../../chroma.js";
import m from "../../Color.js";
import o from "../input.js";
import n from "../../utils/type.js";
import f from "./num2rgb.js";
import u from "./rgb2num.js";
m.prototype.num = function() {
  return u(this._rgb);
};
const p = (...t) => new m(...t, "num");
Object.assign(r, { num: p });
o.format.num = f;
o.autodetect.push({
  p: 5,
  test: (...t) => {
    if (t.length === 1 && n(t[0]) === "number" && t[0] >= 0 && t[0] <= 16777215)
      return "num";
  }
});
export {
  p as num
};
//# sourceMappingURL=index.js.map
