Commit Graph

15 Commits

Author SHA1 Message Date
b653c3a59b test: improve coverage to 98.2%, add staticcheck to CI (#7)
* test: improve coverage to 98.2%, add staticcheck to CI

- Fix comment typos (Intensty → Intensity)
- Add tests for createStringerPalette modes (background fill, smart mode)
- Add tests for ColorString variants, BytesToColor determinism
- Add tests for GetBackgroundColor mid-tone edge case
- Add tests for GenerateOKLCHPalette negative/large inputs
- Add Go 1.25 to CI matrix for compatibility testing
- Add staticcheck lint step to CI
- Fix goimports formatting in hash_test.go

* fix(ci): remove Go 1.25 from matrix (go.mod requires 1.26)
2026-03-26 12:18:53 -04:00
e46914dabb ci: add GitHub Actions CI workflow (#6)
* ci: add GitHub Actions workflow with Go 1.25/1.26 matrix

* Update CI workflow to use Go 1.26 only

Removed Go version 1.25 from CI matrix.
2026-02-24 21:04:40 -05:00
7f7a0a0636 fix: remove local replace directive for simplecolorpalettes v0.7.0 2026-02-23 14:01:09 +00:00
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)
v0.6.0
2026-02-22 22:02:46 -05:00
e3c3a88354 update sponsors 2023-03-09 16:55:00 -08:00
50823c20b8 in-progress commit for hash functionality extension 2022-10-11 13:23:05 -07:00
5c6cb8e0c9 Adding updated hashing 2022-10-10 01:28:39 -07:00
8a6b01b55c remove unnecessary constant 2022-10-03 23:30:07 -07:00
49ea4674ea remove colors from package, use dependency 2022-10-03 01:29:05 -07:00
edf8f302a1 Cleanup and committal of ansi table v0.5.0 2022-09-27 00:53:42 -07:00
1dd2bbd0e8 Create LICENSE 2022-09-25 21:56:04 -07:00
742db7f45e add colors starter files 2022-03-29 01:05:04 -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
4f515fba3b Initial commit 2022-03-21 21:22:57 -07:00