diff options
author | Gary Bressler <garybressler@nc.rr.com> | 2010-03-01 23:46:44 -0500 |
---|---|---|
committer | Gary Bressler <garybressler@nc.rr.com> | 2010-03-01 23:46:44 -0500 |
commit | 44a8ade3ed5dc4810fd95c41dbe8ec3aa2fb0cf7 (patch) | |
tree | 4275bbcb03ec58412c3703e4df68f43fb1c10089 /reader/test.py |
Reorganized tree, along with the visualizer
Diffstat (limited to 'reader/test.py')
-rwxr-xr-x | reader/test.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/reader/test.py b/reader/test.py new file mode 100755 index 0000000..b260314 --- /dev/null +++ b/reader/test.py | |||
@@ -0,0 +1,15 @@ | |||
1 | #!/usr/bin/python | ||
2 | |||
3 | import cairo | ||
4 | |||
5 | if __name__ == '__main__': | ||
6 | surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, 500, 500) | ||
7 | ctx = cairo.Context(surface) | ||
8 | ctx.move_to(10, 10) | ||
9 | ctx.line_to(-100, 10) | ||
10 | ctx.set_line_width(2) | ||
11 | |||
12 | ctx.move_to(10, 10) | ||
13 | ctx.line_to(20, 10) | ||
14 | ctx.stroke() | ||
15 | surface.write_to_png('test.png') | ||