UNPKG

pretty-easy-hex-to-rgb

Version:

Converts a hex color value to it's coresponding rgb value and returns it in an array like format of red, green, blue color values

11 lines (10 loc) 237 B
/** * @description * Makes an rgb color value of a HEX color value * and returns it in an Array like format * * @export * @param {string} hex * @returns {number[]} */ export declare function rgb(hex: string): number[] | Error;