From left to right, the blue dot moves each step two spots to the left and continues right when it reaches the end.
The yellow dot moves one ring out and then a quarter turn counterclockwise and one ring in.
The red stripe is always between the yellow and blue dots.