Skip to content

Commit 34bb8cf

Browse files
authored
Update README.md
1 parent 9860ed2 commit 34bb8cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ If it takes a while to load the image, the sketch will be "paused" on the line `
102102
Laslty, some loader functions have been updated:
103103
* The [p5.js 1.x loadTable](https://p5js.org/reference/p5/loadTable/) expects `filename, [extension], [header], [callback], [errorCallback]`
104104
* The [p5.js 2.0 loadTable](https://betap5js.org/reference/p5/loadTable/) expects `filename, [separator], [header], [callback], [errorCallback]`
105+
* The [p5.js 1.x loadBytes](https://p5js.org/reference/p5/loadBytes/) returns an object with property `data` containing a `UInt8Array` (required because of preload)
106+
* The [p5.js 2.0 loadBytes](https://betap5js.org/reference/p5/loadBytes/) returns the `UInt8Array` directly
105107

106108
All of the above usages in p5.js 1.x remain available with the [preload.js](https://github.com/processing/p5.js-compatibility/blob/main/src/preload.js) compatibility add-on library.
107109

0 commit comments

Comments
 (0)