Input: pink slider reciprocating with constant stroke length.
Output: green rocker of complicated motion.
Green pin of the rocker moves clockwise along the groove on yellow fixed cam.
Violet flat spring does not allow the pin go counter-clockwise at the cam upper corner.
The gravity does not allow the pin go counter-clockwise at the cam lower corner.