Skip to content

Commit

Permalink
width rechange
Browse files Browse the repository at this point in the history
  • Loading branch information
Eyal Perry committed Sep 28, 2024
1 parent 56ce580 commit c422d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function setup() {
fontSize = lineHeight * 0.95;
pyramidTop = height - pyramidHeight + lineHeight / 2;
} else {
canvas = createCanvas(414, windowHeight);
canvas = createCanvas(400, windowHeight);
console.log("window: ", windowWidth, windowHeight);
console.log("wxh: ", width, height);
scl = min(width, height) / 100; // Adjust scale based on screen size
Expand Down Expand Up @@ -132,7 +132,7 @@ function windowResized() {
pyramidTop = height - pyramidHeight + lineHeight / 2;
resetLayout();
} else {
resizeCanvas(414, windowHeight);
resizeCanvas(400, windowHeight);
scl = min(width, height) / 100;

actualWidth = width;
Expand Down

0 comments on commit c422d54

Please # to comment.