From left to right, the blue dot moves two spots to the left each step 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.