raylib-cr
Version, currently latest2 versions
- 5.0latestFeb 16, 2024
- latestnot indexedJun 12, 2026
github.com/sol-vin/raylib-cr
LibRaylib Bindings for Crystal.
Nothing has been indexed for latest yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
raylib-cr:
github: sol-vin/raylib-cr
version: ~> latestThen run:
shards installshard.yml
No shard.yml has been indexed for latest. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.

raylib-cr
Crystal Bindings for raylib, a small and easy to use game development library.
As for now the bindings only support the raw function calls from raylib itself.
raymath functions are also supported, as are infix operators for vectors,
matricies, and quaternions.
Supported platforms
These platforms are supported out of the box and are linked statically
- 64-bit Linux
- 64-bit Windows
- Mac OS
Hopefully soon
- Raspberry PI
Installation
Linux
- Run
sh rsrc/native/ubuntu/install.sh
- Add
raylib-crto yourshard.yml:
dependencies:
raylib-cr:
github: sol-vin/raylib-cr
- Run
shards install - Get programming!
Windows
- Follow the instructions at https://github.com/neatorobito/scoop-crystal to add the crystal-preview bucket to scoop
- Install crystal with
scoop install crystal powershell ./rsrc/native/windows/install.ps1- Run in powershell
$env:LIB="${env:LIB};C:\raylib"
$env:PATH="${env:PATH};C:\raylib"
OR
Run in cmd
set PATH=%PATH%;C:\raylib
set LIB=%LIB%;C:\raylib
- Add
raylib-crto yourshard.yml:
dependencies:
raylib-cr:
github: sol-vin/raylib-cr
- Run
shards install - Get programming!
Usage Example
main.cr
require "raylib-cr"
Raylib.init_window(800, 450, "Hello World")
Raylib.set_target_fps(60)
until Raylib.close_window?
Raylib.begin_drawing
Raylib.clear_background(Raylib::RAYWHITE)
Raylib.draw_text("Hello World!", 190, 200, 20, Raylib::BLACK)
Raylib.end_drawing
end
Raylib.close_window
- Add
raylib-crtoshard.ymldependencies. shards install- Run in powershell (only needs to be run once per new console window opened)
$env:LIB="${env:LIB};C:\raylib"
$env:PATH="${env:PATH};C:\raylib"
shards run
RayGUI, RLGL, Audio, and Lights
If you need to extra functionality, RLGL, RAudio and Lights can be included with the following.
require "raylib-cr/raygui"
require "raylib-cr/rlgl"
require "raylib-cr/audio"
require "raylib-cr/lights"
Contributing
- Fork it (https://github.com/sol-vin/raylib-cr)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Owner
Major Contributors
- rightbrace - Raymath & Wrapper
- D. Shwagginz - RayGUI
Minor Contributors
- b1tlet - Fog Shader
Inactive Contributors
- AregevDev - creator
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
latest- Tagged
- Jun 12, 2026
- Commit
b5f1c9c2edc7- Indexed
- not yet
Dependents
- bunnymark
- tsh-cr
- doo-cr
- pace_editor
- cgl
- helix
- tilepile
- raylib-nuklear-cr
- brium-raylib
- flourite
- crixel
- moissanite
and 6 more
Repository
github.com/sol-vin/raylib-cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Sep 23, 2026
- Synced
- Sep 23, 2026
- Versions
- 2