spinnerbox Posted July 7, 2016 Share Posted July 7, 2016 I was wondering is there function in Phaser that will allow me to generate pixel data object from current Phaser Scene (cover the whole canvas or part of it) and pass this object in I don't know which form to the second Phaser Stage and display it as it is at certain position? Something like this: https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Pixel_manipulation_with_canvas Or I just fall back to plain Canvas API and use ImageData object? Link to comment Share on other sites More sharing options...
drhayes Posted July 7, 2016 Share Posted July 7, 2016 If you're in Canvas mode you can exactly follow that tutorial and maybe make an BitmapData object with the pixels in it. You can get the canvas from "game.canvas". If you're in WebGL it's a little trickier... I don't remember how to do it off the top of my head. spinnerbox 1 Link to comment Share on other sites More sharing options...
spinnerbox Posted July 7, 2016 Author Share Posted July 7, 2016 Yes its canvas. No WebGL required. Link to comment Share on other sites More sharing options...
spinnerbox Posted July 15, 2016 Author Share Posted July 15, 2016 Is there a way to turn Graphics Object visual data into BitmapData? Link to comment Share on other sites More sharing options...
Recommended Posts