I try to draw canvas with p5.js but the canvas stop draws when the tab is not active. What should I do? , here is example code
function setup() {
frameRate(30);
textSize(20);
textSize(30);
textAlign(CENTER);
}
function draw() {
background(200);
text(frameCount, width / 2, height / 2);
}