File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ import * as constants from './constants';
14
14
* a p5 sketch. It expects an incoming sketch closure and it can also
15
15
* take an optional node parameter for attaching the generated p5 canvas
16
16
* to a node. The sketch closure takes the newly created p5 instance as
17
- * its sole argument and may optionally set <a href="#/p5/preload">preload()</a>,
18
- * <a href="#/p5/setup">setup()</a>, and/or
19
- * <a href="#/p5/draw">draw()</a> properties on it for running a sketch.
17
+ * its sole argument and may optionally set an asynchronous function
18
+ * using `async/await`, along with the standard <a href="#/p5/setup">setup()</a>,
19
+ * and/or <a href="#/p5/setup">setup()</a>, and/or <a href="#/p5/draw">draw()</a>
20
+ * properties on it for running a sketch.
20
21
*
21
22
* A p5 sketch can run in "global" or "instance" mode:
22
23
* "global" - all properties and methods are attached to the window
@@ -465,6 +466,8 @@ for (const k in constants) {
465
466
* <a href="#/p5/draw">draw()</a> begins looping. If the
466
467
* <a href="#/p5/preload">preload()</a> is declared, then `setup()` will
467
468
* run immediately after <a href="#/p5/preload">preload()</a> finishes
469
+ *
470
+ *
468
471
* loading assets.
469
472
*
470
473
* Note: `setup()` doesn’t have to be declared, but it’s common practice to do so.
You can’t perform that action at this time.
0 commit comments