'use strict';

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

var index$1 = require('../utils/index.js');
var index = require('../color/index.js');

/* IMPORT */
/* MAIN */
const change = (color, channels) => {
    const ch = index.default.parse(color);
    for (const c in channels) {
        ch[c] = index$1.default.channel.clamp[c](channels[c]);
    }
    return index.default.stringify(ch);
};

exports.default = change;
