Multiple moving circle nodes on one link


In, for “CustomAnimationEffects” example (and similarly in “pathAnimation” example), at each cycle, only one circle node is moving on the link between two nodes from source node to destination node.
How can I have more than one moving circle nodes on one link at each cycle?
I mean before the first moving circle reaches the end of the link, another circle node starts to move from the same source node on a similar link. So we can have multiple moving circle nodes on one link.

You have at least two strategies you could use.

  1. Just have multiple labels.
  2. Use separate Parts and position them yourself rather than setting/binding the segmentFraction of a label.

The choice depends on how you want to manage those moving circles.