Dear EJS-users,

I am looking for a way to move a large number of particles (circles) along paths, like a chain.
If possible the particles should change colour depending on their position.
Is there a nice way in EJS to do this or do I have to work particle by particle?

Please, look at the drawing to get an idea what I mean.
Already many thanks for any help.