"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const index$1 = require("./dist-utils-index.cjs");
const index = require("./dist-color-index.cjs");
const adjustChannel = (color, channel, amount) => {
  const channels = index.default.parse(color);
  const amountCurrent = channels[channel];
  const amountNext = index$1.default.channel.clamp[channel](amountCurrent + amount);
  if (amountCurrent !== amountNext)
    channels[channel] = amountNext;
  return index.default.stringify(channels);
};
exports.default = adjustChannel;
//# sourceMappingURL=dist-methods-adjust_channel.cjs.map
