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.
Requires SDL installed:
apt install libsdl2-dev
dnf install sdl2-devel
brew install sdl2
Copy SDL.mojo
to your project or try the Mandelbrot demo ported from Mojo examples
Run
mojo mandelbrot.mojo
and zoom in/out with the mouse wheel.