pixels/examples/minimal-sdl2/README.md

16 lines
377 B
Markdown
Raw Normal View History

2019-11-20 14:58:21 +11:00
# Hello Pixels
![Hello Pixels](../../img/minimal-sdl2.png)
Minimal example with SDL2 using `beryllium`.
## Running
```bash
cargo run --release --package minimal-sdl2
2019-11-20 14:58:21 +11:00
```
## About
This example demonstrates the absolute minimum for creating an SDL2 window and pixel buffer. It animates a purple box moving on a blue background, just for _something_ interesting to display.