Skip to content

Commit b7a6129

Browse files
committed
Revise saveFrames() reference
1 parent b1d117b commit b7a6129

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/image/image.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -556,11 +556,11 @@ p5.prototype.encodeAndDownloadGif = function(pImg, filename) {
556556
};
557557

558558
/**
559-
* Creates an array of frames from the canvas that can be saved as images.
559+
* Captures a sequence of frames from the canvas that can be saved as images.
560560
*
561-
* Each frame is stored as an object with its file type, file name, and image
562-
* data as a string. For example, the first saved frame might
563-
* have the following object:
561+
* `saveFrames()` creates an array of frame objects. Each frame is stored as
562+
* an object with its file type, file name, and image data as a string. For
563+
* example, the first saved frame might have the following properties:
564564
*
565565
* `{ ext: 'png', filenmame: 'frame0', imageData: 'data:image/octet-stream;base64, abc123' }`.
566566
*

0 commit comments

Comments
 (0)