From 1644f207b107b01e4fa6b377ba81f392709124b6 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Tue, 16 Jun 2020 08:16:28 -0400 Subject: [PATCH] make canvas example more fun --- site/content/examples/05-bindings/10-bind-this/App.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/examples/05-bindings/10-bind-this/App.svelte b/site/content/examples/05-bindings/10-bind-this/App.svelte index 8e4b3c5bef..439d240670 100644 --- a/site/content/examples/05-bindings/10-bind-this/App.svelte +++ b/site/content/examples/05-bindings/10-bind-this/App.svelte @@ -20,7 +20,7 @@ const t = window.performance.now(); const r = 64 + (128 * x / canvas.width) + (64 * Math.sin(t / 1000)); - const g = 64 + (128 * y / canvas.height) + (64 * Math.cos(t / 1000)); + const g = 64 + (128 * y / canvas.height) + (64 * Math.cos(t / 1400)); const b = 128; imageData.data[p + 0] = r;