diff options
author | gennyble <gen@nyble.dev> | 2023-10-09 15:09:55 -0500 |
---|---|---|
committer | gennyble <gen@nyble.dev> | 2023-10-09 15:09:55 -0500 |
commit | 749ea24f3b33c8bfbfee0004df14202c2f75410c (patch) | |
tree | dca59787db6b9ab88b9b7d74c4a3358da3bd4a44 /squash/src/main.rs | |
parent | 54be5b8cb0f494e28dbed06bc3a93aefd2a9caf1 (diff) | |
download | colorsquash-749ea24f3b33c8bfbfee0004df14202c2f75410c.tar.gz colorsquash-749ea24f3b33c8bfbfee0004df14202c2f75410c.zip |
clean up api
Diffstat (limited to 'squash/src/main.rs')
-rw-r--r-- | squash/src/main.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/squash/src/main.rs b/squash/src/main.rs index f7964f4..fe7f310 100644 --- a/squash/src/main.rs +++ b/squash/src/main.rs @@ -51,8 +51,7 @@ fn main() -> Result<(), anyhow::Error> { } }; - let squasher = - Squasher::new_with_difference(color_count, &image.data, &colorsquash::redmean_difference); + let squasher = Squasher::new(color_count, &image.data); let size = squasher.map_over(&mut image.data); image.data.resize(size, 0); |