Input: green gear shaft of barrel cam rotating regularly.
The blue intermediate shaft can slide only thanks to the green barrel cam. Block of two yellow gears can rotate on the blue shaft.
Output: pink shaft that rotates irregularly.
The irregularity depends on helix angles of the helical gears and cam profile.