Skip to content

Commit b6cfe7f

Browse files
committed
merge
2 parents acbd970 + 15d5890 commit b6cfe7f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

p5/maze-generation/sketch.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ function draw() {
4444
const x = col * scl;
4545
const y = row * scl;
4646
noStroke();
47-
if (cell.visited) {
47+
if (current && current[0] == col && current[1] == row) {
48+
fill(67, 130, 200);
49+
} else if (cell.visited) {
4850
fill(200, 67, 130);
4951
} else {
5052
fill(162, 200, 55);

0 commit comments

Comments
 (0)