Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cursor() - the image not displayed as the cursor #6804

Closed
2 of 17 tasks
shawnwz opened this issue Feb 11, 2024 · 5 comments · Fixed by #6810
Closed
2 of 17 tasks

cursor() - the image not displayed as the cursor #6804

shawnwz opened this issue Feb 11, 2024 · 5 comments · Fixed by #6810
Assignees

Comments

@shawnwz
Copy link

shawnwz commented Feb 11, 2024

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

p5.js version

1.9.0

Web browser and version

Google Chrome 121.0.6167.139

Operating system

Mac

Steps to reproduce this

reference to https://p5js.org/reference/#/p5/cursor

If the path to an image is passed, as in cursor('assets/target.png'), then the image will be used as the cursor

acctually the image is not used as the cursor

I tested

cursor(CROSS) is working
cursor('https://avatars0.githubusercontent.com/u/1617169?s=16') is working

BUT cursor("assets/erasers/64-eraser.png") is NOT working

@shawnwz shawnwz added the Bug label Feb 11, 2024
Copy link

welcome bot commented Feb 11, 2024

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you!

@Qianqianye
Copy link
Contributor

Hi @shawnwz, to help us better understand this, could you provide a p5.js web editor link that includes a code snippet illustrating the issue? Thanks!

@haroon10725
Copy link
Contributor

haroon10725 commented Feb 12, 2024

Hi @Qianqianye this is the code snippet illustrating the issue. p5.js web editor

@haroon10725
Copy link
Contributor

Hey @davepagurek Can I work on this?

@davepagurek
Copy link
Contributor

Thanks @haroon10725, I'll assign it to you!

haroon10725 added a commit to haroon10725/p5.js that referenced this issue Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants