Input: rack that has linear reciprocating motion.
Output: blue gear oscillating 180 deg. with dwells at both ends.
Its motion is of constant speed. Its gear profiles are involutes.
Flat portions on the gear and the rack are for keeping the gear immobile during dwells.