summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
m---------test/media0
-rw-r--r--test/triangle-ios-tvos.rb20
2 files changed, 20 insertions, 0 deletions
diff --git a/test/media b/test/media
-Subproject fd57d1c22c11b1cc84b160236718b7e26c438a3
+Subproject 0d54e768f8da2217203649cb270f4d0add82328
diff --git a/test/triangle-ios-tvos.rb b/test/triangle-ios-tvos.rb
new file mode 100644
index 0000000..5189173
--- /dev/null
+++ b/test/triangle-ios-tvos.rb
@@ -0,0 +1,20 @@
+require 'ruby2d'
+
+set title: "Hello Triangle",
+ width: get(:display_width), height: get(:display_height),
+ borderless: true
+
+Rectangle.new(
+ x: 0, y: 0,
+ width: get(:width), height: get(:height),
+ color: [[1, 0, 1, 1], [0, 1, 0, 1], [0, 0, 1, 1], [0, 1, 1, 1]]
+)
+
+Triangle.new(
+ x1: get(:width) / 2, y1: get(:height) / 5,
+ x2: get(:width), y2: get(:height) / 1.5,
+ x3: 0, y3: get(:height) / 1.5,
+ color: [[1, 0, 0, 1], [0, 1, 0, 1], [0, 0, 1, 1]]
+)
+
+show