Most appropriate sub-area of p5.js?
p5.js version
2.0+
Web browser and version
any
Operating system
any
Steps to reproduce this
Steps:
- Run the below code
- Observe that while loading, the canvas is blank with no feedback to user at all (this is a regression compared to p5.js version 1)
Snippet:
// for p5.js versions 2.0 or later only
async function setup() {
createCanvas(400, 400);
// Delay to simulate loading large files (for demo only, not actual usage)
await fakeLoad(7000);
// Your usual setup things below
background("#EB5580");
fill(255);
circle(width / 2, height / 2, 100);
}
function draw() {
circle(mouseX, mouseY, 20);
}
async function fakeLoad(delay) {
await new Promise(resolve => setTimeout(resolve, delay));
}
Most appropriate sub-area of p5.js?
p5.js version
2.0+
Web browser and version
any
Operating system
any
Steps to reproduce this
Steps:
Snippet: