pixels/examples/minimal-winit
2020-04-12 23:13:40 -07:00
..
main.rs treewide: bump dependencies (#60) 2020-04-12 23:13:40 -07:00
README.md Reorganize dependencies (#46) 2019-11-19 19:37:36 -08:00

Hello Pixels

Hello Pixels

Minimal example with winit.

Running

cargo run --release --example minimal-winit --features 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.