# Equivalent to PGraphics g in p5.js?

**URL:** <https://discourse.processing.org/t/equivalent-to-pgraphics-g-in-p5-js/7463>\
**Category:** p5.js\
**Created:** [January 13, 2019, 1:46am UTC](https://discourse.processing.org/t/equivalent-to-pgraphics-g-in-p5-js/7463 "2019-01-13T01:46:04Z")\
**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:** [January 13, 2019, 2:11am UTC](https://discourse.processing.org/t/equivalent-to-pgraphics-g-in-p5-js/7463/2 "2019-01-13T02:11:21Z")

</div>

> [@hint(DISABLE\_DEPTH\_TEST) in P5](https://discourse.processing.org/t/hint-disable-depth-test-in-p5/5595/7):
>
> Shortest way to reach the sketch’s canvas rendering context is via undocumented variable drawingContext: gl = drawingContext; The canvas itself is under undocumented variable canvas. And its wrapper is under both undocumented variables \_renderer & \_curElement.

---

_[View the full topic](https://discourse.processing.org/t/equivalent-to-pgraphics-g-in-p5-js/7463)._
