Creategraphics as an image

Hi, I combined a bunch of image files using creategraphics and .image to make a “pgraphics” (or whatever p5 calls a processing pgraphic… maybe it’s called p5.Renderer?) that has all of the images in one pgraphic. I’d like to use the dom library to copy that combined pgraphic into the HTML of my page. Is this possible?

Basically my code is building a big image combined of several other images, and I want to save the combined image that I created in p5 back to the HTML page that is holding the p5 script.

Thanks!!

What do you mean by “back to HTML”? Is it turning the p5.Renderer into a regular HTMLElement? :thinking:

You need to explain it much clearer. :confused:

Yes that is exactly what we want to do! I want to save my big image (combined of a smaller images) and save all of the big images so that they can be placed into my HTML. We aren’t sure how to save these files.

But save got nothing to do about placing an element inside HTML. Still confused! :dizzy:

Can you provide your current attempt? :cowboy_hat_face:

https://editor.p5js.org/kristencostello/sketches/r1Dwil6cQ