From d0543063dd240e7e441ee68714f991a11bf57a4e Mon Sep 17 00:00:00 2001 From: qazal <77887910+Qazalin@users.noreply.github.com> Date: Fri, 13 Feb 2026 17:22:20 +0800 Subject: [PATCH] viz: wave color is locally scoped (#14728) --- tinygrad/viz/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinygrad/viz/js/index.js b/tinygrad/viz/js/index.js index 8a36adca3d..9f0c682249 100644 --- a/tinygrad/viz/js/index.js +++ b/tinygrad/viz/js/index.js @@ -184,7 +184,7 @@ const WAVE_COLORS = {VALU:"#ffffc0", SALU:"#cef263", LOAD:"#ffc0c0", STORE:"#4fa const waveColor = (op) => { const cat = op.includes("VALU") || op === "VINTERP" ? "VALU" : op.includes("SALU") ? "SALU" : op.includes("VMEM") ? "VMEM" : op.includes("LOAD") || op === "SMEM" ? "LOAD" : op.includes("STORE") ? "STORE" : op; - ret = WAVE_COLORS[cat] ?? "#ffffff"; + let ret = WAVE_COLORS[cat] ?? "#ffffff"; if (op.includes("OTHER_") || op.includes("_ALT")) { ret = darkenHex(ret, 75) } if (op.includes("LDS_")) { ret = darkenHex(ret, 25) } return ret