I want to make an animation in javascript where an object moves along a path. To do this, I need a function that returns me the X / Y coordinates on the path for a given time. The path should be a triangle with soft edges.
At the beginning of the animation, it should move gently into the path of the triangle - but I could solve this, perhaps in another function. More important to me is a function that can return me the X / Y coordinates for moving around a triangle.
Then the animation should be infinite in the way of the triangle.

Are there (online) tools for creating coordinates for such an animation?
Can someone help me with the function?
source
share