3 This example shows how drawing on a canvas can be clipped to a predefined
4 region. The thick line is drawn two times, first in black onto an ordinary
5 canvas, the second time in red onto a canvas which is clipped to the indicated
8 The clipping property of a canvas must be specified on creation with an
9 instance of `canvas.clip`, which takes a path as an argument. Note that this
10 way of clipping will probably be removed in future releases of PyX. Instead, it
11 will become part of the [box concept ../../roadmap.html].