import Utils from '../utils/index.mjs';
import Color from '../color/index.mjs';

/* IMPORT */
/* MAIN */
const channel = (color, channel) => {
    return Utils.lang.round(Color.parse(color)[channel]);
};

export { channel as default };
