The data url of the screenshot. Returns null if the screenshot could not be taken.
const res = screenshot2({
width: 1024,
height: 1024,
mimeType: "image/webp",
transparent: true,
})
// use saveImage to download the image
saveImage(res, "screenshot.webp");
Generated using TypeDoc
Take a screenshot from the current scene.