Is there a way to render a Sprite or Group to a DOM or element?
Not exactly, but you can draw to a bitmap and then create an <img>
from that.
Hmmm… I can draw to a bitmap, but haven’t figured out how to render that to an <img>
. Is there something obvious I’m missing?
Thank you so much for the response
var img = new Image();
img.src = bitmapData.canvas.toDataURL();
document.body.appendChild(img);
1 Like
Wow - exactly what I was missing. Thank you so much!!!
1 Like