works for particle chains each having their own color