Skip to content

msteele/mojo-sdl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal SDL binding for Mojo 🔥

Very basic native Mojo bindings to SDL2. No Python is used at runtime. A Python script to generate different colormaps for the demo is included.

Usage

Requires SDL installed:

Ubuntu

apt install libsdl2-dev

Fedora

dnf install sdl2-devel

Mac OS

brew install sdl2

Copy SDL.mojo to your project or try the Mandelbrot demo ported from Mojo examples

Demo

Run

mojo mandelbrot.mojo

and zoom in/out with the mouse wheel.

About

Minimal SDL2 binding for Mojo🔥

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages