(hex: string)
| 9 | }; |
| 10 | |
| 11 | const parseHexByte = (hex: string): number => { |
| 12 | const n = Number.parseInt(hex, 16); |
| 13 | return Number.isFinite(n) ? n : 0; |
| 14 | }; |
| 15 | |
| 16 | const parseHexColorToRgba01 = (color: string): Rgba01 | null => { |
| 17 | const c = color.trim(); |
no outgoing calls
no test coverage detected