# Multiple Canvas

**URL:** <https://discourse.processing.org/t/multiple-canvas/37718>\
**Category:** Development\
**Created:** [June 26, 2022, 3:27am UTC](https://discourse.processing.org/t/multiple-canvas/37718 "2022-06-26T03:27:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vorfra](https://avatars.discourse-cdn.com/v4/letter/v/f1d935/32.png) [@vorfra](https://discourse.processing.org/u/vorfra)\
**Post date:** [June 26, 2022, 3:27am UTC](https://discourse.processing.org/t/multiple-canvas/37718/1 "2022-06-26T03:27:59Z")

</div>

I want this sketch (#1) to be the background [p5.js Web Editor](https://editor.p5js.org/arcturusInk/sketches/e9B5FxABq) of this sketch (#2) [p5.js Web Editor](https://editor.p5js.org/arcturusInk/sketches/dZDFqqWnH)

I want to save sketch#1 output as an image and use the image as the background of another sketch#2, all in the same program.

I know Instantiation / namespace (video by Dan Shiffman and doc), is that the best way of doing what I described above?

If not, is there a way two canvas can overlap each other without interfering with one another’s code?

---

<div class="post-metadata">

**Author:** ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)\
**Post date:** [June 26, 2022, 12:05pm UTC](https://discourse.processing.org/t/multiple-canvas/37718/2 "2022-06-26T12:05:07Z")

</div>

Hi @vorfra,

Can I ask you, why this approach and not just using another [p5.Graphics](https://p5js.org/reference/#/p5.Graphics) and using this as backround for your main sketch ?

Cheers  
---- mnse

---

<div class="post-metadata">

**Author:** ![vorfra](https://avatars.discourse-cdn.com/v4/letter/v/f1d935/32.png) [@vorfra](https://discourse.processing.org/u/vorfra)\
**Post date:** [June 29, 2022, 3:10pm UTC](https://discourse.processing.org/t/multiple-canvas/37718/3 "2022-06-29T15:10:03Z")

</div>

Hi @mnse,

Thanks for mentioning creategraphics. I wasn’t aware of that as an option to what I was trying to do. Figured it out.

Thanks for the hint.

Best,  
vorfra
