(hex: string)
| 12 | |
| 13 | /* Parse "#rrggbb" to 0..1 channels, matching how the renderer feeds colors. */ |
| 14 | function rgb(hex: string): [number, number, number] { |
| 15 | const n = parseInt(hex.slice(1), 16); |
| 16 | return [((n >> 16) & 0xff) / 255, ((n >> 8) & 0xff) / 255, (n & 0xff) / 255]; |
| 17 | } |
| 18 | const glow = (hex: string) => nodeGlowBoost(...rgb(hex)); |
| 19 | |
| 20 | describe("edgeIntensityScale", () => { |