diff options
| author | Tom Black <[email protected]> | 2017-06-07 11:26:18 -0400 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2017-06-12 12:09:57 -0400 |
| commit | a50cbbcfb6c2994e71f2113f1ba3cab77cf1c53f (patch) | |
| tree | 1bdc38eb75292daf6d798b1dca7b7711a42cf559 /test/testcard.rb | |
| parent | e8c4dbc50f6305e9e6a3cb3653e0871e3c14d944 (diff) | |
| download | ruby2d-a50cbbcfb6c2994e71f2113f1ba3cab77cf1c53f.tar.gz ruby2d-a50cbbcfb6c2994e71f2113f1ba3cab77cf1c53f.zip | |
Set image width and height in constructor
Diffstat (limited to 'test/testcard.rb')
| -rw-r--r-- | test/testcard.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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 |
