Sign in to follow this  
dotteri_thecatwolf

Screenshot with webgl, pandajs

Recommended Posts

Hello, currently I am trying capture the screen with webgl enabled. The code for this is: 

 

keydown: function (key){ (key === '1'){ window.open(game.system.canvas.toDataURL()); }}

This opens a new tab with a black rectangle of the same size as the game resolution, but nothing more. A way to make this works? Thanks. I'm using panda.js.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.