Folding a Rectangle

The rectangle is divided into 4 parts.
Input: the pink part.
The 4 parts are connecting together by revolute joints, axes of which are concurrent. In fact, it is a spherical 4-bar linkage.
The mechanism has an unstable position when all parts are in a plane.
The mechanism is inspired by paper folding art.