lightning and grid support on surface; cleanups
[PyX/mjg.git] / examples / drawing2 / smoothed.py
blob79812b03fbb2686a38945dd1790b6f3ef7c0827c
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")