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