Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- readPixels (300ms)
- Put into canvas (1000ms)
- Save canvas to file (300ms)
- gl.canvas.toBlob((blob) => {
- const url = URL.createObjectURL(blob);
- // url is now something you can give the user to download
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement