Skip to content

Commit 9d9fec9

Browse files
committed
Fixed the issue with DPI. See issue: CodingTrain/website-archive#574
1 parent 8f293b4 commit 9d9fec9

File tree

1 file changed

+2
-0
lines changed
  • CodingChallenges/CC_093_DoublePendulum_p5.js

1 file changed

+2
-0
lines changed

CodingChallenges/CC_093_DoublePendulum_p5.js/sketch.js

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ let buffer;
2323

2424
function setup() {
2525
createCanvas(500, 300);
26+
//Issue with wrong rendering on a retina Mac. See Issue: https://github.com/CodingTrain/website/issues/574
27+
pixelDensity(1);
2628
a1 = PI / 2;
2729
a2 = PI / 2;
2830
cx = width / 2;

0 commit comments

Comments
 (0)