pixels/examples/minimal-sdl2/README.md
Jay Oster 9de2383712
Fix dependency bloat (#67)
* Move all examples to individual crates

* CI: Add libsdl2

* Use Ubuntu bionic for updated libsdl; 2.0.8

* Clippy

* libudev-dev is a dependency of libsdl2-dev

* Clippy

* Remove unnecessary dev-dependency

* `winit` is actually used in unit tests

* Fix a typo

* Move `simple-invaders` crate
2020-04-13 10:12:18 -07:00

16 lines
377 B
Markdown

# Hello Pixels
![Hello Pixels](../../img/minimal-sdl2.png)
Minimal example with SDL2 using `beryllium`.
## Running
```bash
cargo run --release --package minimal-sdl2
```
## 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.