From 44a8ade3ed5dc4810fd95c41dbe8ec3aa2fb0cf7 Mon Sep 17 00:00:00 2001 From: Gary Bressler Date: Mon, 1 Mar 2010 23:46:44 -0500 Subject: Reorganized tree, along with the visualizer --- reader/test.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 reader/test.py (limited to 'reader/test.py') 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 @@ +#!/usr/bin/python + +import cairo + +if __name__ == '__main__': + surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, 500, 500) + ctx = cairo.Context(surface) + ctx.move_to(10, 10) + ctx.line_to(-100, 10) + ctx.set_line_width(2) + + ctx.move_to(10, 10) + ctx.line_to(20, 10) + ctx.stroke() + surface.write_to_png('test.png') -- cgit v1.2.2