diff --git a/p5.play.js b/p5.play.js index 0d1c1b2b..bcc40c95 100644 --- a/p5.play.js +++ b/p5.play.js @@ -569,7 +569,7 @@ p5.prototype.registerMethod('init', function p5PlayInit() { this.color ??= this.p.color(this.p.random(30, 245), this.p.random(30, 245), this.p.random(30, 245)); this.textColor ??= this.p.color(0); - this.textSize ??= this.tileSize == 1 ? this.p.textSize() : 0.8; + this.textSize ??= this.tileSize == 1 ? (this.p.canvas ? this.p.textSize() : 12) : 0.8; let shouldCreateSensor = false; for (let g of this.groups) { diff --git a/package.json b/package.json index 8b88fd52..c38950f0 100644 --- a/package.json +++ b/package.json @@ -33,5 +33,5 @@ "version": "git add -A", "postversion": "git push" }, - "version": "3.2.20" + "version": "3.2.21" }