32 releases

0.1.31 Nov 3, 2024
0.1.28 Oct 2, 2024
0.1.23 Jul 2, 2024
0.1.16 Mar 2, 2024
0.1.1 Dec 29, 2023

#220 in Command-line interface

Download history 151/week @ 2024-07-27 159/week @ 2024-08-03 74/week @ 2024-08-10 2/week @ 2024-08-17 109/week @ 2024-08-31 42/week @ 2024-09-07 5/week @ 2024-09-14 8/week @ 2024-09-21 179/week @ 2024-09-28 29/week @ 2024-10-05 16/week @ 2024-10-12 2/week @ 2024-10-19 452/week @ 2024-11-02 11/week @ 2024-11-09

466 downloads per month

MIT/Apache

3MB
639 lines

colors-by-example

Select ANSI-256 colors on terminal emulator by color indexes example on perceived lightness, chroma or hue.

Features:

  • Find similar colors by Oklch attributes
  • Oklch attributes are provided by example ANSI-256 color indexes
  • Predefined system dependent 4-bit colors for common platforms, e.g. Terminal.app
  • Show sample text with selected colors as foreground or background

Usage

  • Find colors with similar hue to color 148, sort by hue: select_colors -H148 |sort -g -k8

  • Show more similar colors by using --hue-extent: select_colors -H148 --hue-extent 5 |sort -g -k8

    Colors similar to color 148 by hue

  • Show colors opposite in hue to the reference color: select_colors -H148 --hue-extent 5 --opposite|sort -g -k8

    Colors opposite to color 148 by hue

  • Colors with similar lightness to color 148: select_colors -L148|sort -g -k8

    Colors similar to color 148 by lightness

  • Colors similar or brighter than color 148: select_colors -L148 --brighten true |sort -g -k8

    Colors similar or brighter than color 148

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies