Compare commits

..
4 Commits
Author SHA1 Message Date
phundrak 7bc3268607 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:33:52 +02:00
phundrak e93bc547f2 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:33:52 +02:00
phundrak 2ecc34075f 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:33:52 +02:00
phundrak c1f3e83ded feat: initialize project 2026-08-28 13:33:52 +02:00
+1 -1
View File
@@ -30,4 +30,4 @@ cargo test
## License ## License
GPL-3.0-or-later MIT OR GPL-3.0-or-later