From a50cbbcfb6c2994e71f2113f1ba3cab77cf1c53f Mon Sep 17 00:00:00 2001 From: Tom Black Date: Wed, 7 Jun 2017 11:26:18 -0400 Subject: Set image width and height in constructor --- test/testcard.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test') diff --git a/test/testcard.rb b/test/testcard.rb index 099c69e..4e629bc 100644 --- a/test/testcard.rb +++ b/test/testcard.rb @@ -203,8 +203,7 @@ Line.new( Image.new(x: 590, y: 180, path: "#{media}/image.png") Image.new(x: 590, y: 290, path: "#{media}/image.jpg") Image.new(x: 590, y: 400, path: "#{media}/image.bmp") -img_r = Image.new(x: 400, y: 200, path: "#{media}/colors.png") -img_r.width, img_r.height = 50, 25 +img_r = Image.new(x: 400, y: 200, width: 50, height: 25, path: "#{media}/colors.png") img_r.color = [1.0, 0.3, 0.3, 1.0] img_g = Image.new(x: 400, y: 225, path: "#{media}/colors.png") img_g.width, img_g.height = 25, 25 -- cgit v1.2.3