Integrative demo of a gamma curve implemented using Rust and SDL2. Press up/down to change the gamma factor.
- SDL2
- pkg-config
- Ensure you have current version of
cargo
and Rust installed - Clone the project
$ git clone https://github.com/henninglive/gamma-correction-demo/ && cd gamma-correction-demo
- Build the project
$ cargo build --release
(NOTE: There is a large performance differnce when compiling without optimizations, so I recommend alwasy using--release
to enable to them) - Once complete, the binary will be located at
target/release/gamma-correction-demo
- Use
$ cargo run --release
to build and then run, in one step