@Yom – thanks for sharing this.
You asked this as a Processing(Java mode) question, but then gave a JavaScript solution. Did you switch to p5.js, or were you always using p5.js?
@Yom – thanks for sharing this.
You asked this as a Processing(Java mode) question, but then gave a JavaScript solution. Did you switch to p5.js, or were you always using p5.js?