@@ -109,14 +109,10 @@ function pointer(p5, fn){
109
109
/**
110
110
* A `Number` system variable that tracks the mouse's horizontal position.
111
111
*
112
- * In 2D mode, `mouseX` keeps track of the mouse's position relative to the
112
+ * `mouseX` keeps track of the mouse's position relative to the
113
113
* top-left corner of the canvas. For example, if the mouse is 50 pixels from
114
114
* the left edge of the canvas, then `mouseX` will be 50.
115
115
*
116
- * In WebGL mode, `mouseX` keeps track of the mouse's position relative to the
117
- * center of the canvas. For example, if the mouse is 50 pixels to the right
118
- * of the canvas' center, then `mouseX` will be 50.
119
- *
120
116
* If touch is used instead of the mouse, then `mouseX` will hold the
121
117
* x-coordinate of the most recent touch point.
122
118
*
@@ -157,7 +153,7 @@ function pointer(p5, fn){
157
153
* textSize(16);
158
154
*
159
155
* // Display the mouse's coordinates.
160
- * text(`x: ${mouseX} y: ${mouseY}`, 50, 50);
156
+ * text(`x: ${int( mouseX) } y: ${int( mouseY) }`, 50, 50);
161
157
* }
162
158
* </code>
163
159
* </div>
@@ -208,7 +204,7 @@ function pointer(p5, fn){
208
204
* fill(0);
209
205
*
210
206
* // Display the mouse's coordinates.
211
- * text(`x: ${mouseX} y: ${mouseY}`, 0, 0);
207
+ * text(`x: ${int( mouseX) } y: ${int( mouseY) }`, 0, 0);
212
208
* }
213
209
* </code>
214
210
* </div>
@@ -218,14 +214,10 @@ function pointer(p5, fn){
218
214
/**
219
215
* A `Number` system variable that tracks the mouse's vertical position.
220
216
*
221
- * In 2D mode, `mouseY` keeps track of the mouse's position relative to the
217
+ * `mouseY` keeps track of the mouse's position relative to the
222
218
* top-left corner of the canvas. For example, if the mouse is 50 pixels from
223
219
* the top edge of the canvas, then `mouseY` will be 50.
224
220
*
225
- * In WebGL mode, `mouseY` keeps track of the mouse's position relative to the
226
- * center of the canvas. For example, if the mouse is 50 pixels below the
227
- * canvas' center, then `mouseY` will be 50.
228
- *
229
221
* If touch is used instead of the mouse, then `mouseY` will hold the
230
222
* y-coordinate of the most recent touch point.
231
223
*
@@ -266,7 +258,7 @@ function pointer(p5, fn){
266
258
* textSize(16);
267
259
*
268
260
* // Display the mouse's coordinates.
269
- * text(`x: ${mouseX} y: ${mouseY}`, 50, 50);
261
+ * text(`x: ${int( mouseX) } y: ${int( mouseY) }`, 50, 50);
270
262
* }
271
263
* </code>
272
264
* </div>
@@ -317,7 +309,7 @@ function pointer(p5, fn){
317
309
* fill(0);
318
310
*
319
311
* // Display the mouse's coordinates.
320
- * text(`x: ${mouseX} y: ${mouseY}`, 0, 0);
312
+ * text(`x: ${int( mouseX) } y: ${int( mouseY) }`, 0, 0);
321
313
* }
322
314
* </code>
323
315
* </div>
@@ -328,16 +320,12 @@ function pointer(p5, fn){
328
320
* A `Number` system variable that tracks the mouse's previous horizontal
329
321
* position.
330
322
*
331
- * In 2D mode, `pmouseX` keeps track of the mouse's position relative to the
323
+ * `pmouseX` keeps track of the mouse's position relative to the
332
324
* top-left corner of the canvas. Its value is
333
325
* <a href="#/p5/mouseX">mouseX</a> from the previous frame. For example, if
334
326
* the mouse was 50 pixels from the left edge of the canvas during the last
335
327
* frame, then `pmouseX` will be 50.
336
328
*
337
- * In WebGL mode, `pmouseX` keeps track of the mouse's position relative to the
338
- * center of the canvas. For example, if the mouse was 50 pixels to the right
339
- * of the canvas' center during the last frame, then `pmouseX` will be 50.
340
- *
341
329
* If touch is used instead of the mouse, then `pmouseX` will hold the
342
330
* x-coordinate of the last touch point.
343
331
*
@@ -397,16 +385,12 @@ function pointer(p5, fn){
397
385
* A `Number` system variable that tracks the mouse's previous vertical
398
386
* position.
399
387
*
400
- * In 2D mode, `pmouseY` keeps track of the mouse's position relative to the
388
+ * `pmouseY` keeps track of the mouse's position relative to the
401
389
* top-left corner of the canvas. Its value is
402
390
* <a href="#/p5/mouseY">mouseY</a> from the previous frame. For example, if
403
391
* the mouse was 50 pixels from the top edge of the canvas during the last
404
392
* frame, then `pmouseY` will be 50.
405
393
*
406
- * In WebGL mode, `pmouseY` keeps track of the mouse's position relative to the
407
- * center of the canvas. For example, if the mouse was 50 pixels below the
408
- * canvas' center during the last frame, then `pmouseY` will be 50.
409
- *
410
394
* If touch is used instead of the mouse, then `pmouseY` will hold the
411
395
* y-coordinate of the last touch point.
412
396
*
@@ -496,7 +480,7 @@ function pointer(p5, fn){
496
480
* textSize(16);
497
481
*
498
482
* // Display the mouse's coordinates within the browser window.
499
- * text(`x: ${winMouseX} y: ${winMouseY}`, 50, 50);
483
+ * text(`x: ${int( winMouseX) } y: ${int( winMouseY) }`, 50, 50);
500
484
* }
501
485
* </code>
502
486
* </div>
@@ -537,7 +521,7 @@ function pointer(p5, fn){
537
521
* textSize(16);
538
522
*
539
523
* // Display the mouse's coordinates within the browser window.
540
- * text(`x: ${winMouseX} y: ${winMouseY}`, 50, 50);
524
+ * text(`x: ${int( winMouseX) } y: ${int( winMouseY) }`, 50, 50);
541
525
* }
542
526
* </code>
543
527
* </div>
0 commit comments