Skip to content

Commit 4e79c2d

Browse files
author
Lauren McCarthy
committed
fixing formatting for touchx/y examples
1 parent 09f956a commit 4e79c2d

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/events/touch.js

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ p5.prototype._hasTouchInteracted = false;
3030
* <code>
3131
* // Touch and move the finger in horizontally across the canvas
3232
* function setup() {
33-
* createCanvas(100, 100);
33+
* createCanvas(100, 100);
3434
* }
35+
*
3536
* function draw() {
36-
* background(51);
37-
* stroke(255, 204, 0);
38-
* strokeWeight(4);
39-
* rect(touchX,50,10, 10);
37+
* background(51);
38+
* stroke(255, 204, 0);
39+
* strokeWeight(4);
40+
* rect(touchX, 50, 10, 10);
4041
* }
4142
* </code>
4243
* </div>
@@ -56,13 +57,14 @@ p5.prototype.touchX = 0;
5657
* <code>
5758
* // Touch and move the finger vertically across the canvas
5859
* function setup() {
59-
* createCanvas(100, 100);
60+
* createCanvas(100, 100);
6061
* }
62+
*
6163
* function draw() {
62-
* background(51);
63-
* stroke(255, 204, 0);
64-
* strokeWeight(4);
65-
* rect(50,touchY,10, 10);
64+
* background(51);
65+
* stroke(255, 204, 0);
66+
* strokeWeight(4);
67+
* rect(50, touchY, 10, 10);
6668
* }
6769
* </code>
6870
* </div>

0 commit comments

Comments
 (0)