Skip to content

[p5.js 2.0 Bug Report]: position ignored on cursor(img, x, y) when either x or y are zero #8323

@dhowe

Description

@dhowe

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
    ...

p5.js version

2.x

Web browser and version

all

Operating system

all

Steps to reproduce this:

  1. call cursor('/path/to/img/', 0, 32) and notice that the y-value is ignored
  2. 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);
      };
    };

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions