3 clippath
= path
.circle(0, 0, 1)
4 drawpath
= path
.line(-2, -2, 1.2, 2)
6 cl
= canvas
.canvas([canvas
.clip(clippath
)])
7 cl
.stroke(drawpath
, [color
.rgb
.red
, style
.linewidth(1.0)])
10 c
.stroke(drawpath
, [style
.linewidth(1.0)])
14 c
.writeEPSfile("clipping")
15 c
.writePDFfile("clipping")
16 c
.writeSVGfile("clipping")