diff options
author | gennyble <gen@nyble.dev> | 2024-01-12 16:50:49 -0600 |
---|---|---|
committer | gennyble <gen@nyble.dev> | 2024-01-12 16:50:49 -0600 |
commit | 242196775ab297613276364619c3eac14c9af2f3 (patch) | |
tree | a706f4919239225ecc9a90954c1353963f0f7786 | |
parent | d9f3d4c16b6b0f62d55a2975612c1a7f8d609542 (diff) | |
download | colorsquash-242196775ab297613276364619c3eac14c9af2f3.tar.gz colorsquash-242196775ab297613276364619c3eac14c9af2f3.zip |
squash: update to new algorithm names
-rw-r--r-- | squash/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/squash/src/main.rs b/squash/src/main.rs index 5437ea1..8e3a79b 100644 --- a/squash/src/main.rs +++ b/squash/src/main.rs @@ -1,5 +1,5 @@ use cli::DifferenceFn; -use colorsquash::{Squasher, SquasherBuilder}; +use colorsquash::SquasherBuilder; use crate::cli::{InType, OutType}; @@ -23,8 +23,8 @@ fn main() -> Result<(), anyhow::Error> { } builder = match cli.difference { - DifferenceFn::Rgb => builder.difference(&colorsquash::difference::rgb_difference), - DifferenceFn::Redmean => builder.difference(&colorsquash::difference::redmean_difference), + DifferenceFn::Rgb => builder.difference(&colorsquash::difference::rgb), + DifferenceFn::Redmean => builder.difference(&colorsquash::difference::redmean), }; let mut squasher = builder.build(&image.data); |