File tree Expand file tree Collapse file tree
src/content/reference/es/p5 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,24 +37,24 @@ line: 113
3737isConstructor : false
3838itemtype : method
3939alt : 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);
5347 }
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>
5758class : p5
5859chainable : false
5960---
60-
You can’t perform that action at this time.
0 commit comments