Commit Graph

5 Commits

Author SHA1 Message Date
bf06224d7a feat: add OKLCH-aware palette generation (#5)
* chore: update deps, fix escape codes, expand tests, add README

- Bump Go 1.18 → 1.26, simplecolorpalettes v0.9.5 → v0.9.7
- Fix swapped fg/bg ANSI escape code values in trueColorString
- Expand test suite from 2 to 13 tests (determinism, positivity, color assignment, background contrast, stringer palette)
- Add README with usage examples

* feat: add OKLCH-aware palette generation

Add GenerateOKLCHPalette() which creates n evenly-spaced colors in the
OKLCH color space at a given lightness and chroma. This produces
perceptually uniform palettes where all colors appear equally bright.

Uses the new OKLCH support from simplecolorpalettes.

Note: go.mod contains a replace directive for local development that
must be removed before merge (after simplecolorpalettes is published).

* build: update simplecolorpalettes to v0.9.8 (charmtone palette)
2026-02-22 22:02:46 -05:00
50823c20b8 in-progress commit for hash functionality extension 2022-10-11 13:23:05 -07:00
edf8f302a1 Cleanup and committal of ansi table 2022-09-27 00:53:42 -07:00
f101db6d58 use fnv instead of md5 2022-03-25 20:40:57 -07:00
4d3bbc0c88 Adds hash_test code 2022-03-21 22:44:21 -07:00