Skip to content

Commit 83265fb

Browse files
authored
Merge branch 'main' into polygon
2 parents 94f08c2 + a5fa292 commit 83265fb

File tree

12 files changed

+514
-276
lines changed

12 files changed

+514
-276
lines changed

lib/empty-example/sketch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function setup() {
2-
// put setup code here
2+
// put setup code here
33
}
44

55
function draw() {

src/core/p5.Renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class Renderer extends p5.Element {
159159
}
160160

161161
const region = new p5.Image(w*pd, h*pd);
162-
region._pixelDensity = pd;
162+
region.pixelDensity(pd);
163163
region.canvas
164164
.getContext('2d')
165165
.drawImage(canvas, x, y, w * pd, h * pd, 0, 0, w*pd, h*pd);

0 commit comments

Comments
 (0)