Ruby 2D

Make cross-platform 2D applications in Ruby

Get started »

Create 2D applications, games, and visualizations with ease. Just a few lines of code is enough to get started. See what you can build!

require 'ruby2d'

# Set the window size
set width: 300, height: 200

# Create a new shape
s =

# Give it some color
s.color = 'red'

# Show the window