fix build process for extension modules
[PyX.git] / examples / path / split.py
blob914772cb16c7bdde9d0332d275ff62b77bef21c1
1 from pyx import *
3 p = path.curve(0, 0, 1, 0, 1, 1, 2, 1)
4 p1, p2, p3 = p.split([0.5, p.end()-0.5])
6 c = canvas.canvas()
7 c.stroke(p, [style.linewidth.Thin, color.rgb.red])
8 c.stroke(p2, [style.linewidth.Thick, color.rgb.green])
9 c.writeEPSfile("split")
10 c.writePDFfile("split")