add UnicodeEngine (MultiEngineText and axis texters returning MultiEngineText), texte...
[PyX.git] / examples / drawing2 / parallel.py
blob463e1ceccac93aa33c9b0d1f4af2067278539ecc
1 from pyx import *
3 c = canvas.canvas()
4 p = path.line(0, 0, 2, 2)
5 p.append(path.curveto(2, 0, 3, 0, 4, 0))
6 c.stroke(p)
7 c.stroke(p, [deformer.parallel(0.2), color.rgb.blue])
8 c.stroke(p, [deformer.parallel(-0.2), color.rgb.red])
9 c.writeEPSfile("parallel")
10 c.writePDFfile("parallel")
11 c.writeSVGfile("parallel")