FrameRecorder::snapshot()
This works in a project you run on your own computer, but not in the examples you can start here in the browser. There is no file system, no video encoder and no OpenGL behind a web page, so calling it there tells you as much and does nothing.
Takes a snapshot of the current frame and saves it to the specified filename.
Syntax
Java
.snapshot(filename)
Parameters
| Name | Data Type | Description |
|---|---|---|
| filename | String | the name of the file to save the snapshot to |
Return
void