Just started using p5.js, and I was wondering if there's a work around for save(), to save an image to canvas as say the background, rather than downloading..
hm I'm not quite sure I understand the question, you want to get the canvas image to show up as the background of your page? or something else? could you post a little pseudo code that demonstrates what you're hoping to achieve?
Answers
hm I'm not quite sure I understand the question, you want to get the canvas image to show up as the background of your page? or something else? could you post a little pseudo code that demonstrates what you're hoping to achieve?
Yes :-*, I want to have the canvas image show up as the background from a capture.
Something like this.
ah I see. this is a good place to use p5.Graphics. something like this...
note that capture is not supported on all browsers: http://caniuse.com/#search=capture
Thanks much, this is super helpful, will give a try... :)
Had to do a bit of a workaround with the code to get it to work perfectly, as draw() is dependent on this piece of code for the live video
image(capture, 0, 0, width, height);
So a bit of simple boolean trickery did the trick..
Thanks again...
nevermind