Most appropriate sub-area of p5.js?
p5.js version
2.x
Web browser and version
all
Operating system
all
Steps to reproduce this:
- call
cursor('/path/to/img/', 0, 32) and notice that the y-value is ignored
- call
cursor('/path/to/img/', 32, 0) and notice that the x-value is ignored
Snippet
let sketch = function (p) {
p.setup = async function () {
p.createCanvas(400, 400);
}
p.draw = function () {
p.background(255);
p.cursor('./img/p5.jpg', 32, 0);
};
};