File tree Expand file tree Collapse file tree 1 file changed +21
-21
lines changed
Expand file tree Collapse file tree 1 file changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -70,19 +70,18 @@ define(function(require) {
7070 * @param {Number } [x] the horizontal active spot of the cursor
7171 * @param {Number } [y] the vertical active spot of the cursor
7272 * @example
73- * <div><code>
74- * // Move the mouse left and right across the image
75- * // to see the cursor change from a cross to a hand
76- *
77- * function draw() {
78- * line(width/2, 0, width/2, height);
79- * if (mouseX < 50) {
80- * cursor(CROSS);
81- * } else {
82- * cursor(HAND);
83- * }
84- * }
85- * </code></div>
73+ * <div><code>
74+ * // Move the mouse left and right across the image
75+ * // to see the cursor change from a cross to a hand
76+ * function draw() {
77+ * line(width/2, 0, width/2, height);
78+ * if (mouseX < 50) {
79+ * cursor(CROSS);
80+ * } else {
81+ * cursor(HAND);
82+ * }
83+ * }
84+ * </code></div>
8685 */
8786 p5 . prototype . cursor = function ( type , x , y ) {
8887 var cursor = 'auto' ;
@@ -164,15 +163,16 @@ define(function(require) {
164163 *
165164 * @method noCursor
166165 * @example
167- * <div><code>
168- * function setup() {
169- * noCursor();
170- * }
166+ * <div><code>
167+ * function setup() {
168+ * noCursor();
169+ * }
171170 *
172- * function draw() {
173- * ellipse(mouseX, mouseY, 10, 10);
174- * }
175- * </code></div>
171+ * function draw() {
172+ * background(200);
173+ * ellipse(mouseX, mouseY, 10, 10);
174+ * }
175+ * </code></div>
176176 */
177177 p5 . prototype . noCursor = function ( ) {
178178 this . _curElement . elt . style . cursor = 'none' ;
You can’t perform that action at this time.
0 commit comments