Is it possible to animate line length and direction without removing and redrawing it?

When you draw a newLine, you have x1/y1, and x2/y2. The way I understand it, you can move the line around by changing x and y, but to change the vector you have to remove the line and do newLine again.

I’m hoping my understanding is wrong, that I can actually change the endpoint and starting point separately, but I din’t really see how it’s possible.

Are you growing the line in length or just rotating it?    I use an arrow pointer in my game, but it’s an image that I move and rotate accordingly.    I don’t believe you have access to the endpoints of a display.newLine().    Can you use a rect and change its width?

I ‘animated’ my line by drawing it in the background, then on top of it, is a white-rect (so that the line is hidden).

so, when i move the top white-rect, it looks as if the line below it is ‘growing’ and moving.

Are you growing the line in length or just rotating it?    I use an arrow pointer in my game, but it’s an image that I move and rotate accordingly.    I don’t believe you have access to the endpoints of a display.newLine().    Can you use a rect and change its width?

I ‘animated’ my line by drawing it in the background, then on top of it, is a white-rect (so that the line is hidden).

so, when i move the top white-rect, it looks as if the line below it is ‘growing’ and moving.