# Multiple sketches in instance mode

**URL:** <https://discourse.processing.org/t/multiple-sketches-in-instance-mode/11222>\
**Category:** Coding Questions\
**Created:** [May 14, 2019, 12:28pm UTC](https://discourse.processing.org/t/multiple-sketches-in-instance-mode/11222 "2019-05-14T12:28:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [May 14, 2019, 2:23pm UTC](https://discourse.processing.org/t/multiple-sketches-in-instance-mode/11222/2 "2019-05-14T14:23:10Z")

</div>

> [@Best strategy to run multiple p5 sketches on a page](https://discourse.processing.org/t/best-strategy-to-run-multiple-p5-sketches-on-a-page/216/3):
>
> Still researching the responsive canvas topic. sweat For now I’ve got this gist which attempts to adjust the current iframe element to fit document’s body size: radioactive And an online sketch example using that running as 2 iframes: sparkles[https://GoSubRoutine.GitHub.io/Ball-in-the-Chamber/](https://GoSubRoutine.GitHub.io/Ball-in-the-Chamber/) And its corresponding repo too: warning

---

_[View the full topic](https://discourse.processing.org/t/multiple-sketches-in-instance-mode/11222)._
