colors-by-example

Crates.iocolors-by-example
lib.rscolors-by-example
version
sourcesrc
created_at2023-12-29 11:29:12.728147
updated_at2024-12-02 01:44:32.808087
descriptionPick ansi-256 colors by examples
homepage
repositoryhttps://github.com/koyeung/colors-by-example/
max_upload_size
id1083214
Cargo.toml error:TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
YEUNG King On (koyeung)

documentation

README

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.

Commit count: 138

cargo fmt