[cairo-commit] rcairo/samples pac.rb,1.2,1.3 pac2.rb,1.2,1.3

Kouhei Sutou commit at pdx.freedesktop.org
Sat Dec 17 23:28:21 PST 2005


Committed by: kou

Update of /cvs/cairo/rcairo/samples
In directory gabe:/tmp/cvs-serv20563/samples

Modified Files:
	pac.rb pac2.rb 
Log Message:
* packages/cairo/lib/cairo.rb (Cairo::Context#rounded_rectangle): 
  processed h and height same as the one of
  Cairo::Context#rectangle.

* samples/pac1.rb, samples/pac2.rb: followed the above change.


Index: pac.rb
===================================================================
RCS file: /cvs/cairo/rcairo/samples/pac.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- pac.rb	18 Oct 2005 05:03:43 -0000	1.2
+++ pac.rb	18 Dec 2005 07:28:19 -0000	1.3
@@ -27,17 +27,17 @@
 
   # Wall
   cr.set_source_rgb(*magenta)
-  cr.rounded_rectangle(20, 100, 750, 20, 10)
+  cr.rounded_rectangle(20, 80, 750, 20, 10)
   cr.fill
   cr.set_source_rgb(*cyan)
-  cr.rounded_rectangle(20, 100, 750, 20, 10)
+  cr.rounded_rectangle(20, 80, 750, 20, 10)
   cr.stroke
   
   cr.set_source_rgb(*magenta)
-  cr.rounded_rectangle(20, 400, 750, 20, 10)
+  cr.rounded_rectangle(20, 380, 750, 20, 10)
   cr.fill
   cr.set_source_rgb(*cyan)
-  cr.rounded_rectangle(20, 400, 750, 20, 10)
+  cr.rounded_rectangle(20, 380, 750, 20, 10)
   cr.stroke
   
   # Body

Index: pac2.rb
===================================================================
RCS file: /cvs/cairo/rcairo/samples/pac2.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- pac2.rb	18 Oct 2005 05:03:43 -0000	1.2
+++ pac2.rb	18 Dec 2005 07:28:19 -0000	1.3
@@ -35,7 +35,7 @@
   wall_height = 0.03
   wall_space = 0.5
   wall_x = 0.02
-  wall1_y = 1 - 0.83
+  wall1_y = 1 - 0.86
   wall2_y = wall1_y + wall_space
   wall_radius = 0.01
   



More information about the cairo-commit mailing list