Draw custom line

Hi there

How to create a custom line/shape at specific point, like an image below

khy

I can do this using bitmap instead, but i’m worrying about memory usage, since i need many line objects.

Thank you!