Skip to content

Commit

Permalink
fix: Example step 2 code in README.md
Browse files Browse the repository at this point in the history
Aligned the code in README.md with the one used in example.js.
  • Loading branch information
mfila committed Oct 5, 2020
1 parent 280f5d3 commit f2e86ad
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,14 @@ If you prefer to learn by code rather than have step by step instructions take a
let filterX = x < filter.length ? 0 : 1;
filters[filterY][filterX] += weights[y][x];
matrixLog
.at({ x, y })
.at({
x: filterX,
y: filterY
})
.add({
name: 'weights',
x: filterX,
y: filterY,
x,
y,
width: weights[0].length,
height: weights.length
});
Expand Down

0 comments on commit f2e86ad

Please sign in to comment.