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

Color.prototype.darken = function (amount = 1) {
    const me = this;
    const lab = me.lab();
    lab[0] -= labConstants.Kn * amount;
    return new Color(lab, 'lab').alpha(me.alpha(), true);
};

Color.prototype.brighten = function (amount = 1) {
    return this.darken(-amount);
};

Color.prototype.darker = Color.prototype.darken;
Color.prototype.brighter = Color.prototype.brighten;
//# sourceMappingURL=darken.mjs.map
