(n: number)
| 208 | opacity: number = 1 |
| 209 | ): string { |
| 210 | const toHex = (n: number) => { |
| 211 | const i = Math.min(255, Math.max(0, Math.round(n * 255))) |
| 212 | return i.toString(16).padStart(2, '0').toUpperCase() |
| 213 | } |
| 214 | |
| 215 | const r = toHex(color.r) |
| 216 | const g = toHex(color.g) |
no outgoing calls
no test coverage detected