I am new to p5.js and I encountered a problem with a simple code:
var a=10;
var b;
function setup() {
createCanvas(400, 400);
//some expressions using variables go here
}
function draw() {
background(220);
//more expressions using variables go here
print()
}
If I add a print() function, before I am able to type in any parameters printer dialog
opens and goes into an infinite loop. No matter I press print or cancel buttons, the dialog comes back.It does not happen all the time. Please advise!