Skip to content

Commit

Permalink
Merge pull request #6810 from haroon10725/image-not-displayed-as-cursor
Browse files Browse the repository at this point in the history
Fixed cursor image issue
  • Loading branch information
davepagurek committed Feb 20, 2024
2 parents c2acc7f + b8aae5f commit 6d15aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ p5.prototype.focused = document.hasFocus();
* strings: `'help'`, `'wait'`, `'crosshair'`, `'not-allowed'`, `'zoom-in'`,
* and `'grab'`. If the path to an image is passed, as in
* `cursor('assets/target.png')`, then the image will be used as the cursor.
* Images must be in .cur, .gif, .jpg, .jpeg, or .png format.
* Images must be in .cur, .gif, .jpg, .jpeg, or .png format and should be <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#icon_size_limits">at most 32 by 32 pixels large.</a>
*
* The parameters `x` and `y` are optional. If an image is used for the
* cursor, `x` and `y` set the location pointed to within the image. They are
Expand Down

0 comments on commit 6d15aa9

Please sign in to comment.