hint(DISABLE_DEPTH_TEST) in P5

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.

3 Likes