Skip to content

Commit

Permalink
magnitude made more robust; v 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nakednous committed Aug 26, 2023
1 parent 41f1ff3 commit 9404bce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p5.quadrille.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ class Quadrille {
magnitude(row) {
let result = 0;
for (let j = 0; j < this.width; j++) {
if (this._memory2D[row][j]) {
if (this.read(row, j)) {
result++;
}
}
Expand Down Expand Up @@ -1157,7 +1157,7 @@ class Quadrille {
const INFO =
{
LIBRARY: 'p5.quadrille.js',
VERSION: '1.4.0',
VERSION: '1.4.1',
HOMEPAGE: 'https://github.com/objetos/p5.quadrille.js'
};

Expand Down

0 comments on commit 9404bce

Please sign in to comment.