The pink pinion is input. Its shaft has an end sliding in the closed curved slot of the yellow pin wheel. Because of meshing force the green slider carrying the pink pinion reciprocates. The yellow pin wheel oscillates with varied speed. The angle of oscillation can be more than 360 deg.
The rotation from a stationary source is transmitted to the pink pinion by suitable mechanisms: double Hook’s joint, Oldham coupling, …