Skip to content

Commit

Permalink
3.22.19
Browse files Browse the repository at this point in the history
  • Loading branch information
quinton-ashley committed Oct 1, 2024
1 parent 5487e51 commit 16e9a96
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion p5play.js
Original file line number Diff line number Diff line change
Expand Up @@ -3159,12 +3159,17 @@ p5.prototype.registerMethod('init', function p5playInit() {
if (this._strokeWeight !== undefined) {
$.strokeWeight(this._strokeWeight);
}
if (this._opacity) $.ctx.globalAlpha = this._opacity;
let ogGlobalAlpha;
if (this._opacity) {
ogGlobalAlpha = $.ctx.globalAlpha;
$.ctx.globalAlpha = this._opacity;
}
if (this._tint) $.tint(this._tint);

this._draw();

$.pop();
if (this._opacity) $.ctx.globalAlpha = ogGlobalAlpha;
this._cameraActiveWhenDrawn = $.camera.isActive;

if (this.autoDraw) this.autoDraw = null;
Expand Down
2 changes: 1 addition & 1 deletion p5play.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@
"version": "git add -A",
"postversion": "git push"
},
"version": "3.22.18"
"version": "3.22.19"
}

0 comments on commit 16e9a96

Please sign in to comment.