A clipping path is like a normal canvas shape but it acts as a mask to hide unwanted parts of shapes.
If we compare clipping paths to the globalCompositeOperation property, we see two compositing modes that achieve more or less the same effect in source-in and source-atop. The most important differences between the two are that clipping paths are never actually drawn to the canvas and the clipping path is never affected by adding new shapes. This makes clipping paths ideal for drawing multiple shapes in a restricted area.
Press run after each change.