[cairo-commit] pycairo/examples/cairo_snippets/snippets fill_and_stroke.py, 1.2, 1.3 fill_and_stroke2.py, 1.2, 1.3 text.py, 1.3, 1.4

Steve Chaplin commit at pdx.freedesktop.org
Sun May 15 18:12:56 PDT 2005


Committed by: stevech1097

Update of /cvs/cairo/pycairo/examples/cairo_snippets/snippets
In directory gabe:/tmp/cvs-serv27559/examples/cairo_snippets/snippets

Modified Files:
	fill_and_stroke.py fill_and_stroke2.py text.py 
Log Message:
SC

Index: fill_and_stroke.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets/fill_and_stroke.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- fill_and_stroke.py	15 Apr 2005 06:53:05 -0000	1.2
+++ fill_and_stroke.py	16 May 2005 01:12:54 -0000	1.3
@@ -4,11 +4,9 @@
 cr.line_to (0.9, 0.9)
 cr.rel_line_to (-0.4, 0.0)
 cr.curve_to (0.2, 0.9, 0.2, 0.5, 0.5, 0.5)
+cr.close_path()
 
-cr.save ()
 cr.set_source_rgb (0, 0, 1)
-cr.fill ()
-cr.restore ()
-
-cr.close_path ()
+cr.fill_preserve ()
+cr.set_source_rgb (0, 0, 0)
 cr.stroke ()

Index: fill_and_stroke2.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets/fill_and_stroke2.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- fill_and_stroke2.py	15 Apr 2005 06:53:05 -0000	1.2
+++ fill_and_stroke2.py	16 May 2005 01:12:54 -0000	1.3
@@ -12,10 +12,7 @@
 cr.rel_line_to (-0.2, -0.2)
 cr.close_path ()
 
-
-cr.save ()
 cr.set_source_rgb (0, 0, 1)
-cr.fill ()
-cr.restore ()
-
+cr.fill_preserve ()
+cr.set_source_rgb (0, 0, 0)
 cr.stroke ()

Index: text.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets/text.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- text.py	15 Apr 2005 06:53:05 -0000	1.3
+++ text.py	16 May 2005 01:12:54 -0000	1.4
@@ -8,10 +8,9 @@
 
 cr.move_to (0.27, 0.65)
 cr.text_path ("void")
-cr.save ()
 cr.set_source_rgb (0.5,0.5,1)
-cr.fill ()
-cr.restore ()
+cr.fill_preserve ()
+cr.set_source_rgb (0,0,0)
 cr.set_line_width (0.01)
 cr.stroke ()
 




More information about the cairo-commit mailing list