From 9404bceedd93c9a8145723fc0ffb4fc454d09b2a Mon Sep 17 00:00:00 2001 From: nakednous Date: Sat, 26 Aug 2023 10:54:03 -0500 Subject: [PATCH] magnitude made more robust; v 1.4.1 --- p5.quadrille.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p5.quadrille.js b/p5.quadrille.js index 7dae772..672307a 100644 --- a/p5.quadrille.js +++ b/p5.quadrille.js @@ -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++; } } @@ -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' };