diff options
| author | Tom Black <[email protected]> | 2017-09-28 14:11:38 -0700 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2017-11-27 22:51:39 -0800 |
| commit | efeff37021c3cf5afb801a9941f093752b0d826e (patch) | |
| tree | f58b5031eef2dba6d9df02d201183b590fe975a6 /test | |
| parent | 00c54e70107efe2a62f52170613faa5b55cc1ae7 (diff) | |
| download | ruby2d-efeff37021c3cf5afb801a9941f093752b0d826e.tar.gz ruby2d-efeff37021c3cf5afb801a9941f093752b0d826e.zip | |
Add iOS and tvOS support
Diffstat (limited to 'test')
| m--------- | test/media | 0 | ||||
| -rw-r--r-- | test/triangle-ios-tvos.rb | 20 |
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 |
