e93bc547f28f153b79056e8ac762264c6f8ba297
Add `Color::euclidian_distance` and `Rgb::lerp`, then use them in a new `Palette<T>` type whose `expand` method adds colors between close pairs. Split `palette.rs` into a module, with `NORD_PALETTE` in its own file.
Nordify (Rust)
A Rust reimplementation of nordify, a tool that converts images to the Nord palette without dithering artifacts.
Note
This project is in its infancy and probably not correct yet.
Why a Rust rewrite?
The original nordify is written in Python. The original project aims
to provide the same image conversion, without the artifacts typical of
naive dithering algorithms, as a fast, dependency-light single Rust
binary.
Usage
cargo run --release -- input.png -o output.png
Development
cargo build
cargo test
License
MIT OR GPL-3.0-or-later
Languages
Rust
99.5%
Nix
0.5%