screenshot-v1
Add extra methods to the Scene to capture screenshots of the canvas.
stage = (new Stage()).go()
// creates new image
stage.screenshot.toNewImage()
Download a jpg file:
stage = new Stage
stage.screenshot.downloadImage("my-filename.jpg")
Or spawn a link:
stage.screenshot.asDownloadLink()
// Click the newly DOM inserted link
Meta Data
| filepath_exists | True |
| path | screenshot-v1 |
| filepath | screenshot-v1.js |
| clean_files | () |