diff --git a/site/content/tutorial/06-bindings/12-bind-this/app-a/App.svelte b/site/content/tutorial/06-bindings/12-bind-this/app-a/App.svelte index ed9cfa6112..cf08455942 100644 --- a/site/content/tutorial/06-bindings/12-bind-this/app-a/App.svelte +++ b/site/content/tutorial/06-bindings/12-bind-this/app-a/App.svelte @@ -15,7 +15,7 @@ for (let p = 0; p < imageData.data.length; p += 4) { const i = p / 4; const x = i % canvas.width; - const y = i / canvas.height >>> 0; + const y = i / canvas.width >>> 0; const r = 64 + (128 * x / canvas.width) + (64 * Math.sin(t / 1000)); const g = 64 + (128 * y / canvas.height) + (64 * Math.cos(t / 1000)); @@ -49,4 +49,4 @@ -webkit-mask: url(svelte-logo-mask.svg) 50% 50% no-repeat; mask: url(svelte-logo-mask.svg) 50% 50% no-repeat; } - \ No newline at end of file + diff --git a/site/content/tutorial/06-bindings/12-bind-this/app-b/App.svelte b/site/content/tutorial/06-bindings/12-bind-this/app-b/App.svelte index 4e537bd90a..0e53c533ac 100644 --- a/site/content/tutorial/06-bindings/12-bind-this/app-b/App.svelte +++ b/site/content/tutorial/06-bindings/12-bind-this/app-b/App.svelte @@ -15,7 +15,7 @@ for (let p = 0; p < imageData.data.length; p += 4) { const i = p / 4; const x = i % canvas.width; - const y = i / canvas.height >>> 0; + const y = i / canvas.width >>> 0; const r = 64 + (128 * x / canvas.width) + (64 * Math.sin(t / 1000)); const g = 64 + (128 * y / canvas.height) + (64 * Math.cos(t / 1000)); @@ -50,4 +50,4 @@ -webkit-mask: url(svelte-logo-mask.svg) 50% 50% no-repeat; mask: url(svelte-logo-mask.svg) 50% 50% no-repeat; } - \ No newline at end of file +