[cairo-commit] pycairo/examples/cairo_snippets/snippets
operator_add.py, 1.1, 1.2 operator_atop.py, 1.1,
1.2 operator_atop_reverse.py, 1.1, 1.2 operator_in.py, 1.1,
1.2 operator_in_reverse.py, 1.1, 1.2 operator_out.py, 1.1,
1.2 operator_out_reverse.py, 1.1, 1.2 operator_over.py, 1.1,
1.2 operator_over_reverse.py, 1.1, 1.2 operator_saturate.py,
1.1, 1.2 operator_xor.py, 1.1, 1.2
Steve Chaplin
commit at pdx.freedesktop.org
Tue Apr 19 18:36:53 PDT 2005
Committed by: stevech1097
Update of /cvs/cairo/pycairo/examples/cairo_snippets/snippets
In directory gabe:/tmp/cvs-serv6785/examples/cairo_snippets/snippets
Modified Files:
operator_add.py operator_atop.py operator_atop_reverse.py
operator_in.py operator_in_reverse.py operator_out.py
operator_out_reverse.py operator_over.py
operator_over_reverse.py operator_saturate.py operator_xor.py
Log Message:
SC
Index: operator_add.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets/operator_add.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- operator_add.py 6 Apr 2005 13:54:10 -0000 1.1
+++ operator_add.py 20 Apr 2005 01:36:51 -0000 1.2
@@ -2,14 +2,13 @@
snippet_set_bg_svg (cr, "data/freedesktop.svg")
cr.set_operator (cairo.OPERATOR_ADD)
-cr.set_alpha (0.5)
-cr.set_rgb_color (1,0,0)
+cr.set_source_rgba (1,0,0,0.5)
cr.rectangle (0.2,0.2, 0.5,0.5)
cr.fill ()
-cr.set_rgb_color (0,1,0)
+cr.set_source_rgb (0,1,0)
cr.rectangle (0.4,0.4, 0.4,0.4)
cr.fill ()
-cr.set_rgb_color (0,0,1)
+cr.set_source_rgb (0,0,1)
cr.rectangle (0.6,0.6, 0.3,0.3)
cr.fill ()
Index: operator_atop.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets/operator_atop.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- operator_atop.py 6 Apr 2005 13:54:10 -0000 1.1
+++ operator_atop.py 20 Apr 2005 01:36:51 -0000 1.2
@@ -2,13 +2,12 @@
snippet_set_bg_svg (cr, "data/freedesktop.svg")
cr.set_operator (cairo.OPERATOR_ATOP)
-cr.set_alpha (0.5)
-cr.set_rgb_color (1,0,0)
+cr.set_source_rgba (1,0,0,0.5)
cr.rectangle (0.2,0.2, 0.5,0.5)
cr.fill ()
-cr.set_rgb_color (0,1,0)
+cr.set_source_rgb (0,1,0)
cr.rectangle (0.4,0.4, 0.4,0.4)
cr.fill ()
-cr.set_rgb_color (0,0,1)
+cr.set_source_rgb (0,0,1)
cr.rectangle (0.6,0.6, 0.3,0.3)
cr.fill ()
Index: operator_atop_reverse.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets/operator_atop_reverse.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- operator_atop_reverse.py 6 Apr 2005 13:54:10 -0000 1.1
+++ operator_atop_reverse.py 20 Apr 2005 01:36:51 -0000 1.2
@@ -1,14 +1,13 @@
snippet_normalize (cr, width, height)
snippet_set_bg_svg (cr, "data/freedesktop.svg")
cr.set_operator (cairo.OPERATOR_ATOP_REVERSE)
-cr.set_alpha (0.5)
-cr.set_rgb_color (1,0,0)
+cr.set_source_rgba (1,0,0,0.5)
cr.rectangle (0.2,0.2, 0.5,0.5)
cr.fill ()
-cr.set_rgb_color (0,1,0)
+cr.set_source_rgb (0,1,0)
cr.rectangle (0.4,0.4, 0.4,0.4)
cr.fill ()
-cr.set_rgb_color (0,0,1)
+cr.set_source_rgb (0,0,1)
cr.rectangle (0.6,0.6, 0.3,0.3)
cr.fill ()
Index: operator_in.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets/operator_in.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- operator_in.py 6 Apr 2005 13:54:10 -0000 1.1
+++ operator_in.py 20 Apr 2005 01:36:51 -0000 1.2
@@ -1,14 +1,13 @@
snippet_normalize (cr, width, height)
snippet_set_bg_svg (cr, "data/freedesktop.svg")
cr.set_operator (cairo.OPERATOR_IN)
-cr.set_alpha (0.5)
-cr.set_rgb_color (1,0,0)
+cr.set_source_rgba (1,0,0,0.5)
cr.rectangle (0.2,0.2, 0.5,0.5)
cr.fill ()
-cr.set_rgb_color (0,1,0)
+cr.set_source_rgb (0,1,0)
cr.rectangle (0.4,0.4, 0.4,0.4)
cr.fill ()
-cr.set_rgb_color (0,0,1)
+cr.set_source_rgb (0,0,1)
cr.rectangle (0.6,0.6, 0.3,0.3)
cr.fill ()
Index: operator_in_reverse.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets/operator_in_reverse.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- operator_in_reverse.py 6 Apr 2005 13:54:10 -0000 1.1
+++ operator_in_reverse.py 20 Apr 2005 01:36:51 -0000 1.2
@@ -1,14 +1,13 @@
snippet_normalize (cr, width, height)
snippet_set_bg_svg (cr, "data/freedesktop.svg")
cr.set_operator (cairo.OPERATOR_IN_REVERSE)
-cr.set_alpha (0.5)
-cr.set_rgb_color (1,0,0)
+cr.set_source_rgba (1,0,0,0.5)
cr.rectangle (0.2,0.2, 0.5,0.5)
cr.fill ()
-cr.set_rgb_color (0,1,0)
+cr.set_source_rgb (0,1,0)
cr.rectangle (0.4,0.4, 0.4,0.4)
cr.fill ()
-cr.set_rgb_color (0,0,1)
+cr.set_source_rgb (0,0,1)
cr.rectangle (0.6,0.6, 0.3,0.3)
cr.fill ()
Index: operator_out.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets/operator_out.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- operator_out.py 6 Apr 2005 13:54:10 -0000 1.1
+++ operator_out.py 20 Apr 2005 01:36:51 -0000 1.2
@@ -1,14 +1,13 @@
snippet_normalize (cr, width, height)
snippet_set_bg_svg (cr, "data/freedesktop.svg")
cr.set_operator (cairo.OPERATOR_OUT)
-cr.set_alpha (0.5)
-cr.set_rgb_color (1,0,0)
+cr.set_source_rgba (1,0,0,0.5)
cr.rectangle (0.2,0.2, 0.5,0.5)
cr.fill ()
-cr.set_rgb_color (0,1,0)
+cr.set_source_rgb (0,1,0)
cr.rectangle (0.4,0.4, 0.4,0.4)
cr.fill ()
-cr.set_rgb_color (0,0,1)
+cr.set_source_rgb (0,0,1)
cr.rectangle (0.6,0.6, 0.3,0.3)
cr.fill ()
Index: operator_out_reverse.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets/operator_out_reverse.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- operator_out_reverse.py 6 Apr 2005 13:54:10 -0000 1.1
+++ operator_out_reverse.py 20 Apr 2005 01:36:51 -0000 1.2
@@ -1,14 +1,13 @@
snippet_normalize (cr, width, height)
snippet_set_bg_svg (cr, "data/freedesktop.svg")
cr.set_operator (cairo.OPERATOR_OUT_REVERSE)
-cr.set_alpha (0.5)
-cr.set_rgb_color (1,0,0)
+cr.set_source_rgba (1,0,0,0.5)
cr.rectangle (0.2,0.2, 0.5,0.5)
cr.fill ()
-cr.set_rgb_color (0,1,0)
+cr.set_source_rgb (0,1,0)
cr.rectangle (0.4,0.4, 0.4,0.4)
cr.fill ()
-cr.set_rgb_color (0,0,1)
+cr.set_source_rgb (0,0,1)
cr.rectangle (0.6,0.6, 0.3,0.3)
cr.fill ()
Index: operator_over.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets/operator_over.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- operator_over.py 6 Apr 2005 13:54:10 -0000 1.1
+++ operator_over.py 20 Apr 2005 01:36:51 -0000 1.2
@@ -1,14 +1,13 @@
snippet_normalize (cr, width, height)
snippet_set_bg_svg (cr, "data/freedesktop.svg")
cr.set_operator (cairo.OPERATOR_OVER)
-cr.set_alpha (0.5)
-cr.set_rgb_color (1,0,0)
+cr.set_source_rgba (1,0,0,0.5)
cr.rectangle (0.2,0.2, 0.5,0.5)
cr.fill ()
-cr.set_rgb_color (0,1,0)
+cr.set_source_rgb (0,1,0)
cr.rectangle (0.4,0.4, 0.4,0.4)
cr.fill ()
-cr.set_rgb_color (0,0,1)
+cr.set_source_rgb (0,0,1)
cr.rectangle (0.6,0.6, 0.3,0.3)
cr.fill ()
Index: operator_over_reverse.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets/operator_over_reverse.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- operator_over_reverse.py 6 Apr 2005 13:54:10 -0000 1.1
+++ operator_over_reverse.py 20 Apr 2005 01:36:51 -0000 1.2
@@ -1,14 +1,13 @@
snippet_normalize (cr, width, height)
snippet_set_bg_svg (cr, "data/freedesktop.svg")
cr.set_operator (cairo.OPERATOR_OVER_REVERSE)
-cr.set_alpha (0.5)
-cr.set_rgb_color (1,0,0)
+cr.set_source_rgba (1,0,0,0.5)
cr.rectangle (0.2,0.2, 0.5,0.5)
cr.fill ()
-cr.set_rgb_color (0,1,0)
+cr.set_source_rgb (0,1,0)
cr.rectangle (0.4,0.4, 0.4,0.4)
cr.fill ()
-cr.set_rgb_color (0,0,1)
+cr.set_source_rgb (0,0,1)
cr.rectangle (0.6,0.6, 0.3,0.3)
cr.fill ()
Index: operator_saturate.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets/operator_saturate.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- operator_saturate.py 6 Apr 2005 13:54:10 -0000 1.1
+++ operator_saturate.py 20 Apr 2005 01:36:51 -0000 1.2
@@ -1,14 +1,13 @@
snippet_normalize (cr, width, height)
snippet_set_bg_svg (cr, "data/freedesktop.svg")
cr.set_operator (cairo.OPERATOR_SATURATE)
-cr.set_alpha (0.5)
-cr.set_rgb_color (1,0,0)
+cr.set_source_rgba (1,0,0,0.5)
cr.rectangle (0.2,0.2, 0.5,0.5)
cr.fill ()
-cr.set_rgb_color (0,1,0)
+cr.set_source_rgb (0,1,0)
cr.rectangle (0.4,0.4, 0.4,0.4)
cr.fill ()
-cr.set_rgb_color (0,0,1)
+cr.set_source_rgb (0,0,1)
cr.rectangle (0.6,0.6, 0.3,0.3)
cr.fill ()
Index: operator_xor.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets/operator_xor.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- operator_xor.py 6 Apr 2005 13:54:10 -0000 1.1
+++ operator_xor.py 20 Apr 2005 01:36:51 -0000 1.2
@@ -1,14 +1,13 @@
snippet_normalize (cr, width, height)
snippet_set_bg_svg (cr, "data/freedesktop.svg")
cr.set_operator (cairo.OPERATOR_XOR)
-cr.set_alpha (0.5)
-cr.set_rgb_color (1,0,0)
+cr.set_source_rgba (1,0,0,0.5)
cr.rectangle (0.2,0.2, 0.5,0.5)
cr.fill ()
-cr.set_rgb_color (0,1,0)
+cr.set_source_rgb (0,1,0)
cr.rectangle (0.4,0.4, 0.4,0.4)
cr.fill ()
-cr.set_rgb_color (0,0,1)
+cr.set_source_rgb (0,0,1)
cr.rectangle (0.6,0.6, 0.3,0.3)
cr.fill ()
More information about the cairo-commit
mailing list