We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5728b50 commit 252b214Copy full SHA for 252b214
1 file changed
effects/tunnel.html
@@ -54,7 +54,7 @@ <h2 id="code">The Code</h2>
54
canvas.height = 480;
55
var ctx = canvas.getContext("2d");
56
57
-var texture = new ImageData(256, 256);
+var texture = new ImageData(texWidth, texHeight);
58
var distanceTable = new Array(canvas.height);
59
var angleTable = new Array(canvas.height);
60
var buffer = new ImageData(canvas.width, canvas.height);</code></pre></div>
@@ -241,4 +241,4 @@ <h2 id="moving">Moving Around</h2>
241
player3.render(document.getElementById("container3"));
242
</script>
243
</body>
244
-</html>
+</html>
0 commit comments