Inkscape
How to hide object in inkscape?
These two features are both employed in the same way: put the object that will serve as clip (or mask) above the object that you want to clip (or mask). Then select both objects, and use Object ‣ Clip ‣ Set or Object ‣ Mask ‣ Set. The top object will then become invisible and work to hide parts of the bottom object.