/** * @name convert * @namespace shared.color * @type Function * @platform js * @platform node * @status stable * * This function take as input any color format like rgba Object, hsl Object, hsv Object, hex String, rgba String, hsl String or hsv String * and convert it into the wanted format like "rgba", "hsl", "hsv", "hex", "rgbaString", "hslString" or "hsvString" * * @param {Mixed} input The input color to convert * @param {String} [format="rgba"] The format wanted * @return {Mixed} The converted color * * @todo tests * * @snippet __convert($1, $2) * * @example js * import { __convert } from '@lotsof/sugar/color'; * __convert('rgba(10,20,30,100)', 'rgba'); // => { r: 10, g: 20, b: 30, a: 100 } * * @since 1.0.0 * @author Olivier Bossel (https://lotsof.dev) */ export default function __convert(input: any, format?: string): string | object;