File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments