diff options
| author | Mac Mollison <mollison@cs.unc.edu> | 2010-03-13 12:09:00 -0500 |
|---|---|---|
| committer | Mac Mollison <mollison@cs.unc.edu> | 2010-03-13 12:09:00 -0500 |
| commit | 14a40b99735f09f6e70b8e897acbb622f9115ca3 (patch) | |
| tree | e8420397374fd31aa36a66d0dc75872142d339e6 /reader/test.py | |
| parent | a643f0465d608552433ba326847eec5d0bef3108 (diff) | |
Directory restructuring
Reworked directory (and modified some code a bit) to match
intended architecture.
Diffstat (limited to 'reader/test.py')
| -rwxr-xr-x | reader/test.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/reader/test.py b/reader/test.py deleted file mode 100755 index b260314..0000000 --- a/reader/test.py +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 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') | ||
