Skip to content

Commit 1644f20

Browse files
committed
make canvas example more fun
1 parent 8bb0c80 commit 1644f20

File tree

1 file changed

+1
-1
lines changed
  • site/content/examples/05-bindings/10-bind-this

1 file changed

+1
-1
lines changed

site/content/examples/05-bindings/10-bind-this/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
const t = window.performance.now();
2121
2222
const r = 64 + (128 * x / canvas.width) + (64 * Math.sin(t / 1000));
23-
const g = 64 + (128 * y / canvas.height) + (64 * Math.cos(t / 1000));
23+
const g = 64 + (128 * y / canvas.height) + (64 * Math.cos(t / 1400));
2424
const b = 128;
2525
2626
imageData.data[p + 0] = r;

0 commit comments

Comments
 (0)