I am trying to convert the canvas element on this page to a png using the following snippet (e.g. enter in JavaScript console):
canvas
(function conver
toDataURL() read data from Buffer.
toDataURL()
we don't need to use preserveDrawingBuffer: true
preserveDrawingBuffer: true
before read data, we also need to use render()
render()
finally:
renderer.domElement.toDataURL();