diff --git a/pendulum/main.js b/pendulum/main.js index 178bc17e..2599abc8 100644 --- a/pendulum/main.js +++ b/pendulum/main.js @@ -173,7 +173,7 @@ function simulate() function setup() { - canvas = createCanvas(1400, 800); + canvas = createCanvas(displayWidth - 100, displayHeight / 4 * 3); canvas.mouseClicked(handleClick); }