Input: pink shaft rotating regularly.
Green shaft is identical to the pink one and rotates with the same velocity and direction.
Output: yellow cam shaft oscillating with dwells at its stroke ends. Oscillating angle: 180 deg.
The arcs of the two cranks are for keeping the output shaft immobile during its dwells.