Input: yellow slider of helical groove linearly reciprocating.
Output: four glass squares turning 90 deg. one after another.
The green pin of each square moves in the said helical groove.
Reds spring pins are for positioning the squares after each 90 deg. rotation. In combination with the internal circular groove in each square they also prevent axial displacement of the squares.