I'm trying to draw a line that looks like this:
I'm hoping to achieve this by drawing a line like this:
and then somehow clipping it with a rect to look like the line above.
I'd like to use the CanvasItem draw_* functions, but I can't work out how to set a stencil test or a clipping mask that could clip out certain pixels when drawing. Is this even a feature that exists in Godot?