File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,9 @@ function loadingDisplaying(p5, fn){
66
66
*
67
67
* <div>
68
68
* <code>
69
- * function setup() {
69
+ * async function setup() {
70
70
* // Call handleImage() once the image loads.
71
- * loadImage('assets/laDefense.jpg', handleImage);
71
+ * await loadImage('assets/laDefense.jpg', handleImage);
72
72
*
73
73
* describe('Image of the underside of a white umbrella and a gridded ceiling.');
74
74
* }
@@ -82,10 +82,10 @@ function loadingDisplaying(p5, fn){
82
82
*
83
83
* <div>
84
84
* <code>
85
- * function setup() {
85
+ * async function setup() {
86
86
* // Call handleImage() once the image loads or
87
87
* // call handleError() if an error occurs.
88
- * loadImage('assets/laDefense.jpg', handleImage, handleError);
88
+ * await loadImage('assets/laDefense.jpg', handleImage, handleError);
89
89
* }
90
90
*
91
91
* // Display the image.
@@ -995,7 +995,7 @@ function loadingDisplaying(p5, fn){
995
995
*
996
996
* async function setup() {
997
997
* // Load the image.
998
- * img = await loadImage('assets/laDefense50.jpg ');
998
+ * img = await loadImage('assets/laDefense50.png ');
999
999
*
1000
1000
* createCanvas(100, 100);
1001
1001
*
You can’t perform that action at this time.
0 commit comments