Green motor moves the green rail along X axis (via belt and yellow screw-nut drives).
Blue motor moves the blue rail along Y axis (via belt and violet screw-nut drives).
Pink stylus has prismatic joints with the green and blue rails.
The pink line is trajectory of the stylus.
The mechanism can be used for 3D printers.