Pink piston moves two green jaw levers up/down to clamp yellow workpiece.
Blue cam controls angle A between the green levers.
When the piston moves down, A gets large for clamping the workpiece.
When the piston moves up, A gets small for removing the workpiece.