The preview is not updating on change of methods or functions. The canvas has to be closed and then reopened .
Sample Code:
Example:
function setup() {
createCanvas(640, 480);
}
function draw() {
if (mouseIsPressed) {
fill(0);
} else {
fill(255);
}
ellipse(mouseX, mouseY, 80, 80); ///changing this to new shape rect doesnt update the preview.
The preview is not updating on change of methods or functions. The canvas has to be closed and then reopened .
Sample Code:
Example: function setup() { createCanvas(640, 480); }
function draw() { if (mouseIsPressed) { fill(0); } else { fill(255); } ellipse(mouseX, mouseY, 80, 80); ///changing this to new shape rect doesnt update the preview.
}