'use strict';

const getColorString = (color, mode) => {
    let string;
    if (mode === 'hex')
        string =
            color.alpha() === 1 ? color.hex().toString() : color.hexa().toString();
    else if (mode === 'hsl')
        string = color.hsl().toString();
    else
        string = color.rgb().toString();
    return string;
};
const SUPPORTED_MODES = ['hex', 'hsl', 'rgb'];

exports.SUPPORTED_MODES = SUPPORTED_MODES;
exports.getColorString = getColorString;
//# sourceMappingURL=utils.cjs.map
