File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed
src/content/reference/es/p5 Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -37,24 +37,24 @@ line: 113
37
37
isConstructor : false
38
38
itemtype : method
39
39
alt : nothing displayed
40
- example : |
41
- <div><code>
42
- let yPos = 0;
43
- function setup() {
44
- // setup() runs once
45
- frameRate(30);
46
- }
47
- function draw() {
48
- // draw() loops forever, until stopped
49
- background(204);
50
- yPos = yPos - 1;
51
- if (yPos < 0) {
52
- yPos = height;
40
+ example :
41
+ - |-
42
+ <div><code>
43
+ let yPos = 0;
44
+ function setup() {
45
+ // setup() runs once
46
+ frameRate(30);
53
47
}
54
- line(0, yPos, width, yPos);
55
- }
56
- </code></div>
48
+ function draw() {
49
+ // draw() loops forever, until stopped
50
+ background(204);
51
+ yPos = yPos - 1;
52
+ if (yPos < 0) {
53
+ yPos = height;
54
+ }
55
+ line(0, yPos, width, yPos);
56
+ }
57
+ </code></div>
57
58
class : p5
58
59
chainable : false
59
60
---
60
-
You can’t perform that action at this time.
0 commit comments