(hex: string)
| 86 | * Convert a hex color to an RGB color. |
| 87 | */ |
| 88 | export function hexToRgb(hex: string): string { |
| 89 | const [r, g, b] = hexToRgbArray(hex); |
| 90 | // Return the RGB values separated by spaces |
| 91 | return `${r} ${g} ${b}`; |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * Convert a hex color to a RGBA color. |
no test coverage detected