Undocumented shortcut to a p5.Graphics’s drawing context: pg._renderer.drawingContext
pg._renderer.drawingContext