From 1575e5fd1a358a3c997288998d7b25f87472905d Mon Sep 17 00:00:00 2001 From: gennyble Date: Sun, 8 Oct 2023 20:37:38 -0500 Subject: allow changing difference algorithm --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..0db61d0 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +Colorsquash is a colour quantization[^1] crate and algorithm. +At it's core, it sorts the unique colours that appear in an image +and selects the most frequent that are sufficiently different. + +To put it more clearly: +The most frequent colour is always selected and placed into the palette. +If the second most frequent colour is *different enough*, it will be selected +as well. If it's not, it is skipped and the third one is tried. This continues +until it selects the necessary amount of colours. + +[^1] (wikipedia: color quantization)[https://en.wikipedia.org/wiki/Color_quantization] + +### squash +A CLI tool to quantize colours. Accepts a path to a PNG; exports an indexed PNG. \ No newline at end of file -- cgit 1.4.1-3-g733a5