Skip to content
This repository was archived by the owner on Jul 5, 2022. It is now read-only.

Commit 73f098d

Browse files
function renderV fix (#3045)
This was probably not noticed before because the main loop does not use this function at all. -removed leftover 3rd dimention variable "k" from line 88 and 89 -removed leftover "this.canvas." from line 90 Co-authored-by: Kobe Liesenborgs <[email protected]>
1 parent 5f99d94 commit 73f098d

File tree

1 file changed

+3
-3
lines changed
  • CodingChallenges/CC_132_FluidSimulation/P5

1 file changed

+3
-3
lines changed

CodingChallenges/CC_132_FluidSimulation/P5/fluid.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ class Fluid {
8585
for (let j = 0; j < N; j++) {
8686
let x = i * SCALE;
8787
let y = j * SCALE;
88-
let vx = this.Vx[IX(i, j, k)];
89-
let vy = this.Vy[IX(i, j, k)];
90-
this.canvas.stroke(0);
88+
let vx = this.Vx[IX(i, j)];
89+
let vy = this.Vy[IX(i, j)];
90+
stroke(0);
9191

9292
if (!(abs(vx) < 0.1 && abs(vy) <= 0.1)) {
9393
line(x, y, x + vx * SCALE, y + vy * SCALE);

0 commit comments

Comments
 (0)