(num: number)
| 89 | const g = Math.round(color.g * 255); |
| 90 | const b = Math.round(color.b * 255); |
| 91 | const toHex = (num: number): string => num.toString(16).padStart(2, "0"); |
| 92 | return `#${toHex(r)}${toHex(g)}${toHex(b)}`.toUpperCase(); |
| 93 | } |
| 94 | const r = numberToFixedString(color.r * 255); |