Compare commits

..
4 Commits
Author SHA1 Message Date
phundrak 28dac1b7dc feat: wire up image conversion pipeline and CLI
Add `convert.rs`: a SIMD nearest-color search and a rayon-parallel
`nordify_pixels` function. Add `error.rs` with the `NordifyError` type.

Rewrite `lib.rs` to expose `NordifyOptions`, `nordify_image`, and
`nordify_file` as the public API. Rewrite `main.rs` to parse CLI
arguments with `argh` and call into `lib.rs`.

Add `argh` and `thiserror` as dependencies.
2026-08-28 13:41:18 +02:00
phundrak 4cbc25f2d6 feat(palette): add palette expansion via color interpolation
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.
2026-08-28 13:41:18 +02:00
phundrak f1fd2a1edd feat: add color module with sRGB to Lab conversion (scalar + SIMD)
- src/color.rs: Rgb/Lab types, planar SoA storage, wide-based SIMD
  RGB to Lab conversion with scalar remainder tail
- src/palette.rs: NORD_PALETTE constant
- Cargo.toml: add image/ndarray/rayon/wide deps, tuned release profile
2026-08-28 13:41:18 +02:00
phundrak 3e4772014e feat: initialize project 2026-08-28 13:41:18 +02:00
+1 -1
View File
@@ -3,7 +3,7 @@ name = "nordify-rs"
version = "0.1.0" version = "0.1.0"
edition = "2024" edition = "2024"
authors = ["Lucien Cartier-Tilet <lucien@phundrak.com>"] authors = ["Lucien Cartier-Tilet <lucien@phundrak.com>"]
license = "MIT OR GPL-3.0-or-later" license = "GPL-3.0-or-later"
homepage = "https://labs.phundrak.com/phundrak/nordify-rs" homepage = "https://labs.phundrak.com/phundrak/nordify-rs"
repository = "https://labs.phundrak.com/phundrak/nordify-rs" repository = "https://labs.phundrak.com/phundrak/nordify-rs"