2 import sys
; sys
.path
[:0] = ["../.."]
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
)