This implements the shape at the ending of
this video
. The clipping changes the way coordinates are displayed, scaling them to fit within a rectangle. This doesn't scale the canvas since there is a scale factor for that if you need it.
Foreground:
Background:
Depth:
Scale:
Linewidth:
Clip width:
Clip height: