@Cheng I think you can make it a closed form somehow: you need to find the smallest number that is divisible by all periods in your sketch.
So uh, like the opposite of the greatest common divisor... smallest common numerator?
Thanks for your suggestion and your code! 💖 I actually know how to do it, and was just busy with other things.
> So uh, like the opposite of the greatest common divisor... smallest common numerator?
There's least common multiple (lcm). https://en.wikipedia.org/wiki/Least_common_multiple
For irrational numbers as animation period times, I don't think a solution is guaranteed to exist, e.g. [Pi, 1]. For rational numbers, a solution can be found by factorizing each numerator and denominator of the numbers
vis.social is an open social platform for creative people, especially anyone in sciArt, data, visualization, creative coding, and related arts and research. English is the common language of the instance.