summaryrefslogtreecommitdiffhomepage
path: root/test/contains.rb
diff options
context:
space:
mode:
authorTom Black <[email protected]>2018-10-05 22:44:13 -0700
committerTom Black <[email protected]>2018-10-08 17:34:17 -0700
commit4a4df9831003e0c9f51278b968a78d1900b9a3d9 (patch)
tree9c3ea4774243a48e07ee75f18da77b2ba1c1bf6f /test/contains.rb
parent13821e171daa52e2b9c4d35320eee0492b727bb7 (diff)
downloadruby2d-4a4df9831003e0c9f51278b968a78d1900b9a3d9.tar.gz
ruby2d-4a4df9831003e0c9f51278b968a78d1900b9a3d9.zip
Reorganize Image, Sprite, and Text args
Start with the required argument first as positional, followed by optional ones as keyword arguments Co-Authored-By: Andrew Havens <[email protected]>
Diffstat (limited to 'test/contains.rb')
-rw-r--r--test/contains.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/contains.rb b/test/contains.rb
index c5c6686..b24b898 100644
--- a/test/contains.rb
+++ b/test/contains.rb
@@ -17,8 +17,8 @@ objects.push Quad.new(x1: 350, y1: 50, x2: 500, y2: 75, x3: 450, y3: 150, x4: 37
objects.push Triangle.new(x1: 550, y1: 50, x2: 600, y2: 125, x3: 500, y3: 150)
objects.push Line.new(x1: 225, y1: 175, x2: 375, y2: 225, width: 20)
objects.push Circle.new(x: 225, y: 275, radius: 50)
-objects.push Image.new(x: 50, y: 200, path: "#{media}/colors.png")
-objects.push Text.new(x: 450, y: 200, text: "Hello", size: 50, font: font)
+objects.push Image.new("#{media}/colors.png", x: 50, y: 200)
+objects.push Text.new("Hello", x: 450, y: 200, size: 50, font: font)
on :key_down do |event|
close if event.key == 'escape'