Raylib Ruby

Make cross-platform 2D and 3D applications in Ruby

Get started »

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

require 'raylib'

Raylib.init_window(640, 480, 'My window')

until Raylib.window_should_close
  Raylib.begin_drawing
  Raylib.clear_background(Raylib::WHITE)
  Raylib.draw_text(
    'Hello, Raylib!', 190, 200, 20, Raylib::BLACK
  )
  Raylib.end_drawing
end

Raylib.close_window