Most appropriate sub-area of p5.js?
p5.js version
2.2.0
Web browser and version
Chrome 143.0.7499.193
Operating system
MacOSX
Steps to reproduce this
In WebGPU mode, the coordinate system starts (0,0) from the center of the screen. Was this intended behavior?
If so, shouldn't mouseX and mouseY should reflect the (new) coordinate system position, such as (-10,-10)?
Steps:
- See the sample sketch
Snippet:
async function setup() {
await createCanvas(windowWidth, windowHeight, WEBGPU);
// await createCanvas(windowWidth, windowHeight); //this works fine
}
function draw() {
circle(0, 0, 20);
circle(mouseX, mouseY, 20);
}
Most appropriate sub-area of p5.js?
p5.js version
2.2.0
Web browser and version
Chrome 143.0.7499.193
Operating system
MacOSX
Steps to reproduce this
In WebGPU mode, the coordinate system starts (0,0) from the center of the screen. Was this intended behavior?
If so, shouldn't mouseX and mouseY should reflect the (new) coordinate system position, such as (-10,-10)?
Steps:
Snippet: