rename config section for filelocator module
[PyX/mjg.git] / examples / drawing / style.py
blobc3ecf53eeb5d1bcc158e727a5dbf1ec3213e0410
1 from pyx import *
3 c = canvas.canvas()
4 c.stroke(path.line(0, 0, 4, 0),
5 [style.linewidth.THICK, style.linestyle.dashed, color.rgb.red])
6 c.stroke(path.line(0, -1, 4, -1),
7 [style.linewidth(0.2), style.linecap.round, color.rgb.green])
8 c.fill(path.rect(0, -3, 4, 1), [color.rgb.blue])
9 c.writeEPSfile("style")
10 c.writePDFfile("style")