From left to right, the blue dot moves each step two spots to the left and continues to the right when the end is reached.
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.