UNPKG

color2k

Version:

a color parsing and manipulation lib served in roughly 2kB

8 lines (7 loc) 249 B
/** * Parses a color into red, gree, blue, alpha parts * * @param color the input color. Can be a RGB, RBGA, HSL, HSLA, or named color */ declare function parseToRgba(color: string): [number, number, number, number]; export default parseToRgba;