Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. readPixels (300ms)
  2. Put into canvas (1000ms)
  3. Save canvas to file (300ms)
  4.  
  5. gl.canvas.toBlob((blob) => {
  6. const url = URL.createObjectURL(blob);
  7. // url is now something you can give the user to download
  8. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement