add UnicodeEngine (MultiEngineText and axis texters returning MultiEngineText), texte...
[PyX.git] / examples / drawing2 / smoothed.py
blob9ece4d02723fa6308715e7221cc70f7bfb61a094
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.smoothed(1.0), color.rgb.blue])
8 c.stroke(p, [deformer.smoothed(2.0), color.rgb.red])
9 c.writeEPSfile("smoothed")
10 c.writePDFfile("smoothed")
11 c.writeSVGfile("smoothed")