← Back to examples
Demonstrates the usage of <instance>.toImage(). The image size is dependant on the window.devicePixelRatio or the resolution of your screen. It's best to set a width and height.
<instance>.toImage()
window.devicePixelRatio