Optional
context: ContextThe context to take the screenshot from
Optional
width: numberThe width of the screenshot
Optional
height: numberThe height of the screenshot
The mime type of the image
Optional
camera: CameraThe camera to use for the screenshot
The data url of the screenshot. Returns null if the screenshot could not be taken.
const dataUrl = screenshot();
saveImage(dataUrl, "screenshot.png");
Generated using TypeDoc
Take a screenshot from the current scene.
NOTE: Use screenshot2 for more options.