Revert to fixed window width
This commit is contained in:
parent
e65177f2f0
commit
b6d08cf284
@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
var archiveUrl = window.location + "add-to-archive";
|
var archiveUrl = window.location + "add-to-archive";
|
||||||
var canvas;
|
var canvas;
|
||||||
var canvasHeight = 500;
|
var canvasHeight;
|
||||||
var canvasWidth = 500;
|
var canvasWidth;
|
||||||
var centerX;
|
var centerX;
|
||||||
var centerY;
|
var centerY;
|
||||||
var frameRate = 30;
|
var frameRate = 30;
|
||||||
@ -304,8 +304,8 @@ function setup() {
|
|||||||
/**
|
/**
|
||||||
* The p5.js initial setup function.
|
* The p5.js initial setup function.
|
||||||
**/
|
**/
|
||||||
canvasWidth += windowWidth;
|
canvasWidth = windowWidth;
|
||||||
canvasHeight += windowHeight;
|
canvasHeight = windowHeight;
|
||||||
|
|
||||||
createCanvas(canvasWidth, canvasHeight);
|
createCanvas(canvasWidth, canvasHeight);
|
||||||
frameRate(frameRate);
|
frameRate(frameRate);
|
||||||
@ -375,7 +375,5 @@ function windowResized() {
|
|||||||
/**
|
/**
|
||||||
* Canvas re-draw handling.
|
* Canvas re-draw handling.
|
||||||
**/
|
**/
|
||||||
canvasWidth += windowWidth;
|
|
||||||
canvasHeight += windowHeight;
|
|
||||||
resizeCanvas(canvasWidth, canvasHeight);
|
resizeCanvas(canvasWidth, canvasHeight);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user