Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to save the current screenshot #122

Open
note744 opened this issue Jul 16, 2021 · 1 comment
Open

How to save the current screenshot #122

note744 opened this issue Jul 16, 2021 · 1 comment

Comments

@note744
Copy link

note744 commented Jul 16, 2021

How to save the current screenshot

@makeCarry
Copy link

// Render the scene and camera so the screen doesn't refresh in real time
PSV.renderer.render();
// Get a data URI that contains the image display
PSV.container.querySelector('canvas').toDataURL("image/png")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants