import e from "../../utils/type.js";
const c = (f) => {
  if (e(f) == "number" && f >= 0 && f <= 16777215) {
    const r = f >> 16, o = f >> 8 & 255, t = f & 255;
    return [r, o, t, 1];
  }
  throw new Error("unknown num color: " + f);
};
export {
  c as default
};
//# sourceMappingURL=num2rgb.js.map
