add UnicodeEngine (MultiEngineText and axis texters returning MultiEngineText), texte...
[PyX.git] / test / functional / test_pattern.py
blob28de2a24bb97548825a04a45094acf9333f7b7e6
1 #!/usr/bin/env python
2 import sys; sys.path[:0] = ["../.."]
4 from pyx import *
6 c = canvas.canvas()
8 pa1= pattern.pattern(attrs=[style.linewidth.thin])
9 pa1.stroke(path.line(0, 0, 0.25, 0.25))
10 pa1.stroke(path.line(0, 0.25, 0.25, 0))
12 #c.draw(path.circle(3, 3, 3), [deco.filled([pa1])])
13 c.draw(path.circle(3, 3, 3), [deco.filled([pa1]), deco.stroked])
14 c.draw(path.circle(5, 1, 1), [deco.filled([pa1]), deco.stroked])
16 pa2 = pattern.pattern()
17 pa2.text(0.125, 0.125, r"\PyX")
19 c.draw(path.rect(-1, -1, 1, 1), [deco.filled([pa2]), deco.stroked])
21 c.writeEPSfile("test_pattern", page_paperformat=document.paperformat.A4)
22 c.writePDFfile("test_pattern", page_paperformat=document.paperformat.A4)
23 c.writeSVGfile("test_pattern", page_paperformat=document.paperformat.A4)