diff options
Diffstat (limited to 'examples/simple.rb')
| -rw-r--r-- | examples/simple.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/simple.rb b/examples/simple.rb new file mode 100644 index 0000000..ca8e99f --- /dev/null +++ b/examples/simple.rb @@ -0,0 +1,13 @@ +require 'ruby2d' + +# Set the window size +set width: 300, height: 200 + +# Create a new shape +s = Square.new + +# Give it some color +s.color = 'red' + +# Show the window +show |
