import '../io/lch/index.mjs';
import Color from '../Color.mjs';
import labConstants from '../io/lab/lab-constants.mjs';

Color.prototype.saturate = function (amount = 1) {
    const me = this;
    const lch = me.lch();
    lch[1] += labConstants.Kn * amount;
    if (lch[1] < 0) lch[1] = 0;
    return new Color(lch, 'lch').alpha(me.alpha(), true);
};

Color.prototype.desaturate = function (amount = 1) {
    return this.saturate(-amount);
};
//# sourceMappingURL=saturate.mjs.map
