Five bar mechanism gives knitting needle a complicated trajectory.
The mechanism looks enigmatic because of large revolute joints, purpose of which is to ensure full rotation of the pink input shaft. Upper figure is kinematic diagram of this mechanism.