Yellow, pink and green links create a slider crank mechanism.
Thanks to green cylinder the pink conrod (length of which is shorter than the one of the yellow link) turns orange work 90 deg.
Blue piston is used for setting working position of the mechanism.