Create a smooth loop from 0 to 1 to 0.
I have implemented this functionality (with a small bug at the beginning), but my implementation is quite complex.
I'm sure there's a simpler and clearer way to achieve this.
Thank you very much for your help!
look at line help > multi segment
..................................................
Thank you very much for your help!
I’ve checked the line help, but I didn’t think of applying it this way. I appreciate your inspiration. Based on that, I’ve added a switch, and I hope anyone with questions about this can find the answer here.
Here's a different way to do it FYI.
And here is a another approach
If it is for animating something that is part of a [jit.world], I would use [jit.time.tri] for that, or any object from the (builtin) jit.mo package, as it gives you one value per frame, no more, no less.