Skip to content

Commit d4a3509

Browse files
authored
Small changes to increase consistency
- Explicitly set pixel density to 1 - Changed length coefficient to 2 from 3
1 parent 1fc2646 commit d4a3509

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clock/sketch.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ function setup() {
44
lastSecond = second();
55
clockSpeed = 1;
66
radius = width / 2;
7+
pixelDensity(1);
78
}
89

910
function windowResized() {
@@ -66,7 +67,7 @@ function draw() {
6667
let vec = pointInfo[0];
6768
stroke(pointInfo[1]);
6869
strokeWeight(vec[0]);
69-
line(xx, yy, xx + cos(vec[1]) * 3 * vec[0], yy + sin(vec[1]) * 3 * vec[0]);
70+
line(xx, yy, xx + cos(vec[1]) * 2 * vec[0], yy + sin(vec[1]) * 2 * vec[0]);
7071
}
7172
}
7273
}

0 commit comments

Comments
 (0)