var canvasWidth = 800;
var canvasHeight = 400;
function setup() {
createCanvas(canvasWidth, canvasHeight);
The canvas is not accepting the arguments and doesn't resize properly. This issue is only happening in p5 itself. When I do this in CodePen it is working fine. So the arguments seem to get accepted, but when the arguments are not actual numbers, the window somehow doesn't get resized properly.
From @AnneCHPostma (https://github.com/processing/p5.js/issues/1346):
When I have the following code:
The canvas is not accepting the arguments and doesn't resize properly. This issue is only happening in p5 itself. When I do this in CodePen it is working fine. So the arguments seem to get accepted, but when the arguments are not actual numbers, the window somehow doesn't get resized properly.