Skip to content

Commit

Permalink
fix: push/pop, fixes #191, fixes #192
Browse files Browse the repository at this point in the history
  • Loading branch information
zenozeng committed Jul 6, 2021
1 parent 72e090b commit 0ba91d9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"mocha": "^8.3.2",
"puppeteer": "^10.0.0",
"rollup": "^2.45.2",
"svgcanvas": "^2.0.3"
"svgcanvas": "^2.0.4"
},
"directories": {
"test": "test"
Expand Down
11 changes: 11 additions & 0 deletions test/unit/basic/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ describe('Basic', function() {
p.resetMatrix();
p.rect(0, 0, 20, 20);
},
push: function(p) {
// https://p5js.org/reference/#/p5/push
p.ellipse(0, 50, 33, 33);
p.push();
p.strokeWeight(10);
p.fill(204, 153, 0);
p.translate(50, 0);
p.ellipse(0, 50, 33, 33);
p.pop();
p.ellipse(100, 50, 33, 33);
}
};

Object.keys(tests).forEach(function(key) {
Expand Down

0 comments on commit 0ba91d9

Please sign in to comment.