about summary refs log tree commit diff
path: root/squash/src/main.rs
diff options
context:
space:
mode:
authorgennyble <gen@nyble.dev>2023-10-09 15:09:55 -0500
committergennyble <gen@nyble.dev>2023-10-09 15:09:55 -0500
commit749ea24f3b33c8bfbfee0004df14202c2f75410c (patch)
treedca59787db6b9ab88b9b7d74c4a3358da3bd4a44 /squash/src/main.rs
parent54be5b8cb0f494e28dbed06bc3a93aefd2a9caf1 (diff)
downloadcolorsquash-749ea24f3b33c8bfbfee0004df14202c2f75410c.tar.gz
colorsquash-749ea24f3b33c8bfbfee0004df14202c2f75410c.zip
clean up api
Diffstat (limited to 'squash/src/main.rs')
-rw-r--r--squash/src/main.rs3
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);