Skip to content

Commit

Permalink
v1.4.5 init
Browse files Browse the repository at this point in the history
  • Loading branch information
nakednous committed Sep 18, 2023
1 parent 0ca9579 commit 230dd70
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions p5.quadrille.js
Original file line number Diff line number Diff line change
Expand Up @@ -729,23 +729,13 @@ class Quadrille {
filter(mask, row, col) {
if (mask.size % 2 === 1 && mask.width === mask.height && this.size >= mask.size) {
let half_size = (mask.width - 1) / 2;
// TODO decide visit use
if (row === undefined || col === undefined) {
visitQuadrille(this, (i, j) => {
if (i >= half_size && i < this.height - half_size && j >= half_size && j < this.width - half_size) {
this._conv(mask, i, j, half_size)
}
});
}
/*
if (row === undefined || col === undefined) {
for (let i = half_size; i < this.height - half_size; i++) {
for (let j = half_size; j < this.width - half_size; j++) {
this._conv(mask, i, j, half_size);
}
}
}
// */
else if (row >= half_size && row < this.height - half_size && col >= half_size && col < this.width - half_size) {
this._conv(mask, row, col, half_size);
}
Expand Down Expand Up @@ -1164,7 +1154,7 @@ class Quadrille {
const INFO =
{
LIBRARY: 'p5.quadrille.js',
VERSION: '1.5.0',
VERSION: '1.4.5',
HOMEPAGE: 'https://github.com/objetos/p5.quadrille.js'
};

Expand Down

0 comments on commit 230dd70

Please sign in to comment.