From 5a0e9ec5fb15e7e015249623540fc26c1984d5e2 Mon Sep 17 00:00:00 2001 From: gennyble Date: Mon, 10 Jun 2024 17:29:09 -0500 Subject: Bring readme into modernity --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 3601c3a..f0e33b0 100644 --- a/README.md +++ b/README.md @@ -13,12 +13,17 @@ and takes the top N colours that are sufficiently different. [^1]: [wikipedia: color quantization](https://en.wikipedia.org/wiki/Color_quantization) -**features** +**library features** -**`kmeans`** - use kmeans for palette selection instead of sort & select. **`gifed`** - adds the `Squasher::palette_gifed()` method allowing you to directly get a gifed's Palette struct. +**colour selection algorithms** + +*`Sorsel`* - sorts colors most to least frequent and then picks the top colours that are different enough than the colours already picked. +*`KMeans`* - use k-means clustering to select the palette. +*`HighestBits`* - bit-shift the color components until all of the colors fit in the palette. + ### squash A CLI tool to quantize colours :D -- cgit 1.4.1-3-g733a5