+ 2
I am tryng to save the sphere drawn on canvas using p5.js library but it doesn't ,so if Anyone can please help!
6 Respostas
+ 2
You don't have access to your local storage from js inside a web code playground project...
In reality, you don't have access from external web pages to the client file system, and even with a web page licated at your device, it's quite impossible to achieve ^^
+ 1
The simplest workaround (but not exactly easy) is to doing some tricks with blob object, and bitmap image base64 url encoding for providing to user a downloadable link... Try to search here or to google for 'js save canvas' ;)
0
visph oh ok ty
0
visph , honestly I know nothing about bolb object and bitmap thing but I will try figure it out anyway lol! Ty for your response :)
0
At worst, you could do a screenshot to save your canvas :P
0
Yeah I did that at first 😂