Ruby2D is a simple and elegant 2D graphics library for the Ruby programming language, designed to make it easy to build games, simulations, and interactive applications. Built atop SDL2 and OpenGL, Ruby2D abstracts away the complexity of low-level graphics programming while exposing enough control for performance and flexibility. It supports images, text, sounds, and basic geometric shapes, making it ideal for learning graphics or quickly prototyping ideas with Ruby. The library is cross-platform and lightweight, staying true to Ruby’s principle of developer happiness.

Features

  • Simple Ruby API for drawing 2D shapes and images
  • Supports OpenGL and SDL2 for fast, hardware-accelerated rendering
  • Audio playback for WAV, MP3, and OGG formats
  • Built-in support for displaying text using TTF fonts
  • Window management and input handling for mouse and keyboard
  • Cross-platform support for Windows, macOS, Linux, and Raspberry Pi
  • Animation and update loops for real-time apps and games
  • Image and sprite rendering with transparency
  • Optional integration with Ruby gems like Gosu and FFI

Project Samples

Project Activity

See All Activity >

Categories

Build Tools

License

MIT License

Follow Ruby 2D

Ruby 2D Web Site

Other Useful Business Software
Unrivaled Embedded Payments Solutions | NMI Icon
Unrivaled Embedded Payments Solutions | NMI

For SaaS builders, software companies, ISVs and ISOs who want to embed payments into their tech stack

NMI Payments is an embedded payments solution that lets SaaS platforms, Software companies and ISVs integrate, brand, and manage payment acceptance directly within their software—without becoming a PayFac or building complex infrastructure. As a full-stack processor, acquirer, and technology partner, NMI handles onboarding, compliance, and risk so you can stay focused on growth. The modular, white-label platform supports omnichannel payments, from online, mobile and in-app to in-store and unattended. Choose from full-code, low-code, or no-code integration paths and launch in weeks, not months. Built-in risk tools, flexible monetization, and customizable branding help you scale faster while keeping full control of your experience. With NMI’s developer-first tools, sandbox testing, and modern APIs, you can embed payments quickly and confidently.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Ruby 2D!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Ruby

Related Categories

Ruby Build Tools

Registered

2025-03-25