diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-27 15:48:45 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-27 15:48:45 +0100 |
commit | ef44077310b4ebf8d3cb31ccb57d15b96a94c9d3 (patch) | |
tree | c2bb690ccc1be37c03f6dcdcf892fbf3e17f5067 /test/test_evas.rb | |
parent | dbb2c5713e11489dfaeb318a82785017f1794dde (diff) | |
parent | b030c490265bb13ee98a650da419a033495042ed (diff) | |
download | ffi-efl-ef44077310b4ebf8d3cb31ccb57d15b96a94c9d3.zip ffi-efl-ef44077310b4ebf8d3cb31ccb57d15b96a94c9d3.tar.gz |
Merge branch 'wip'
Conflicts:
tools/genruby.rb
Diffstat (limited to 'test/test_evas.rb')
-rw-r--r-- | test/test_evas.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/test_evas.rb b/test/test_evas.rb index c3eadf7..c70f4d9 100644 --- a/test/test_evas.rb +++ b/test/test_evas.rb @@ -59,19 +59,19 @@ h = 240 # canvas, pixels = create_canvas w, h # -bg = canvas.object_rectangle_add do |b| - b.color = 255, 255, 255, 255 - b.move 0, 0 - b.resize w, h +bg = canvas.object_rectangle_add do + color_set 255, 255, 255, 255 + move 0, 0 + resize w, h end bg.show # draw_scene canvas # -r1 = canvas.object_rectangle_add do |r| - r.color = 255, 0, 0, 255 - r.move 10, 10 - r.resize 100, 100 +r1 = canvas.object_rectangle_add do + color_set 0, 0, 0, 255 + move 10, 10 + resize 100, 100 end r1.show # @@ -82,10 +82,10 @@ r2 = canvas.object_rectangle_add do |r| end r2.show # -r3 = canvas.object_rectangle_add do |r| - r.color = 0, 128, 0, 255 - r.move 60, 60 - r.resize 50, 50 +r3 = canvas.object_rectangle_add do + color_set 0, 128, 0, 255 + move 60, 60 + resize 50, 50 end r3.show # |