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.