'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var index = require('../color/index.js');
var change = require('./change.js');

/* IMPORT */
/* MAIN */
const adjust = (color, channels) => {
    const ch = index.default.parse(color);
    const changes = {};
    for (const c in channels) {
        if (!channels[c])
            continue;
        changes[c] = ch[c] + channels[c];
    }
    return change.default(color, changes);
};

exports.default = adjust;
