Live Demos
GX programs compiled to WebAssembly, running in your browser. Same source compiles to native desktop apps.
Snake
Sokol + WebGL2Classic Snake game built entirely in GX. Arrow keys or WASD to move. — Space = Start/Restart, Arrow keys / WASD = Move
Shapes
Sokol + WebGL2Animated 3D shapes rendered with Sokol.
Triangle
Sokol + WebGL2Colored triangle — the "hello world" of graphics.
Compiled with gx example.gx --target web
— C backend → Emscripten → WASM + WebGL2.