9de2383712
* 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
18 lines
510 B
Markdown
18 lines
510 B
Markdown
# Hello Pixels
|
|
|
|
![Hello Pixels](../../img/minimal-winit.png)
|
|
|
|
Minimal example with `winit`.
|
|
|
|
## Running
|
|
|
|
```bash
|
|
cargo run --release --package minimal-winit
|
|
```
|
|
|
|
## About
|
|
|
|
This example demonstrates the absolute minimum for creating a `winit` window and pixel buffer. It animates a purple box moving on a blue background, just for _something_ interesting to display.
|
|
|
|
It uses `winit_input_helper` to provide a slightly better code presentation, but it doesn't greatly reduce the number of lines in the example.
|