'use strict';

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

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

module.exports = change;
