Skip to content

Commit 6d15aa9

Browse files
authored
Merge pull request #6810 from haroon10725/image-not-displayed-as-cursor
Fixed cursor image issue
2 parents c2acc7f + b8aae5f commit 6d15aa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/environment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ p5.prototype.focused = document.hasFocus();
199199
* strings: `'help'`, `'wait'`, `'crosshair'`, `'not-allowed'`, `'zoom-in'`,
200200
* and `'grab'`. If the path to an image is passed, as in
201201
* `cursor('assets/target.png')`, then the image will be used as the cursor.
202-
* Images must be in .cur, .gif, .jpg, .jpeg, or .png format.
202+
* 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>
203203
*
204204
* The parameters `x` and `y` are optional. If an image is used for the
205205
* cursor, `x` and `y` set the location pointed to within the image. They are

0 commit comments

Comments
 (0)