Getting the canvas to draw on top of it

I have the same question. I want to draw some lines on the HTML canvas. Is it possible to get the 2d Context this way?
For context, I am trying to draw a dashed line in Playcanvas App. I can take the mesh route specified here, but I need to constantly keep scaling the mesh and I don’t know of any way how I can maintain the texel density while scaling the object (The way I know would be computationally expensive)

I am using the new drawLines API but it doesn’t seem to have options for drawing dashed lines either.

Here is the test project I am playing around in: https://playcanvas.com/editor/scene/1253323

Any help would be appreciated :slight_smile: