Animate the way?

I have a set of coordinates. I would like to take, for example, the first 5 and draw a line connecting 1 - 2 - 3 - 4 - 5. Then, after a predetermined duration, I would like to delete the first point and add the 6th point. In this case, I would like the line to be animated in such a way that the "beginning" of the line moves from point 1 to point2, while the end of the line moves from point 5 to point 6.

The effect here will be very similar to the old Nibbles game with a snake that moves around food.

What would be the most efficient way to approach this in WPF?

Thanks in advance!

+3
source share
2 answers

Polyline Points, . . msdn, .

+1

Source: https://habr.com/ru/post/1725212/


All Articles