From 05d4c2f0b3343addf2376e6a5f84b124e046eed9 Mon Sep 17 00:00:00 2001 From: John Owens Date: Tue, 5 Nov 2024 13:10:10 -0800 Subject: [PATCH] oops fixing final 'spin' --- both_webgpu/both_deno_gfx.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/both_webgpu/both_deno_gfx.mjs b/both_webgpu/both_deno_gfx.mjs index dea19c8..2af0745 100644 --- a/both_webgpu/both_deno_gfx.mjs +++ b/both_webgpu/both_deno_gfx.mjs @@ -71,7 +71,7 @@ async function loop(frames, waitingForKeyboard = true) { waitingForKeyboard = false; break; default: - if (spin == false) { + if (waitingForKeyboard == false) { const r = Math.sin(Date.now() / 1000) * 127 + 128; const g = Math.sin(Date.now() / 1000 + 2) * 127 + 128; const b = Math.sin(Date.now() / 1000 + 4) * 127 + 128;