p5.js icon indicating copy to clipboard operation
p5.js copied to clipboard

cursor() - the image not displayed as the cursor

Open shawnwz opened this issue 1 year ago • 5 comments
trafficstars

Most appropriate sub-area of p5.js?

  • [ ] Accessibility
  • [ ] Color
  • [ ] Core/Environment/Rendering
  • [ ] Data
  • [ ] DOM
  • [ ] Events
  • [X] Image
  • [ ] IO
  • [ ] Math
  • [ ] Typography
  • [ ] Utilities
  • [ ] WebGL
  • [ ] Build process
  • [ ] Unit testing
  • [ ] Internationalization
  • [ ] Friendly errors
  • [X] 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 avatar Feb 11 '24 18:02 shawnwz

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!

welcome[bot] avatar Feb 11 '24 18:02 welcome[bot]

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!

Qianqianye avatar Feb 12 '24 01:02 Qianqianye

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

haroon10725 avatar Feb 12 '24 04:02 haroon10725

Hey @davepagurek Can I work on this?

haroon10725 avatar Feb 13 '24 13:02 haroon10725

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

davepagurek avatar Feb 13 '24 13:02 davepagurek