(hex: string)
| 4 | const clamp255 = (v: number): number => Math.min(255, Math.max(0, v)); |
| 5 | |
| 6 | const parseHexNibble = (hex: string): number => { |
| 7 | const n = Number.parseInt(hex, 16); |
| 8 | return Number.isFinite(n) ? n : 0; |
| 9 | }; |
| 10 | |
| 11 | const parseHexByte = (hex: string): number => { |
| 12 | const n = Number.parseInt(hex, 16); |
no outgoing calls
no test coverage detected