I tried the following code but the image is always black. Is there something I am missing?
var canvas = document.createElement("canvas"); canvas.toBlob(function (blob) {
Develop games in your browser. Powerful, performant & highly capable.