Best way to deform a sprite along a path
Let's say I have a sprite that is an elongated form, like a road or a brush stroke. I want its shape to be changeable so I can use the same sprite for all of them while only changing the path. It should never be too long so no need to repeat, just stretching it is fine.
What's the best way of achieving this? I thought about using shaders but I'm not sure how that would work out.
Thanks in advance