We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b9ac36 commit ee5b9aaCopy full SHA for ee5b9aa
main.js
@@ -6,6 +6,7 @@ let offset = 0;
6
let paramValues = new Object();
7
let rotateNow;
8
let autoNow;
9
+let devicePixelRatio;
10
11
12
@@ -69,8 +70,13 @@ window.onload = () => {
69
70
71
72
const reset = () => {
- canvas.width = window.innerWidth;
73
- canvas.height = window.innerHeight;
+ canvas.width = window.innerWidth * devicePixelRatio;
74
+ canvas.height = window.innerHeight * devicePixelRatio;
75
+
76
+ canvas.style.width = window.innerWidth + "px";
77
+ canvas.style.height = window.innerHeight + "px";
78
79
+ ctx.scale(devicePixelRatio, devicePixelRatio);
80
ctx.lineCap="square";
81
ctx.lineDashOffset=30;
82
ctx.shadowBlur = 0;
0 commit comments