pixels/examples/minimal-winit
2022-12-17 17:35:02 -08:00
..
src Allow accessing frame on immutable buffer (#288) 2022-08-14 15:44:23 -07:00
Cargo.toml Update all dependencies in the workspace (#323) 2022-12-17 17:35:02 -08:00
README.md Fix dependency bloat (#67) 2020-04-13 10:12:18 -07:00

Hello Pixels

Hello Pixels

Minimal example with winit.

Running

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.