# PGraphics.beginDraw(), PGraphics.endDraw() alternatives

**URL:** <https://discourse.processing.org/t/pgraphics-begindraw-pgraphics-enddraw-alternatives/21769>\
**Category:** Coding Questions\
**Created:** [June 11, 2020, 11:46am UTC](https://discourse.processing.org/t/pgraphics-begindraw-pgraphics-enddraw-alternatives/21769 "2020-06-11T11:46:16Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![mgood7123](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Post date:** [June 12, 2020, 5:28am UTC](https://discourse.processing.org/t/pgraphics-begindraw-pgraphics-enddraw-alternatives/21769/9 "2020-06-12T05:28:25Z")

</div>

hmmm ok, ill try that

also see [Off-screen render performance, multiple PGraphics objects](https://discourse.processing.org/t/off-screen-render-performance-multiple-pgraphics-objects/21783) and [Shared PGraphics instances - drawing](https://discourse.processing.org/t/shared-pgraphics-instances-drawing/21801)

but ummmm… how would i go about seperation? as `canvas.fill(0);` in an application would fill the canvas in ALL applications since it is shared, right? if so, could i use `PGraphics.clip(x1, y1, x2, y2)` to implement a global drawing canvas?

---

_[View the full topic](https://discourse.processing.org/t/pgraphics-begindraw-pgraphics-enddraw-alternatives/21769)._
