{"id":21981676,"url":"https://github.com/soft/palettematch","last_synced_at":"2025-03-23T01:18:21.329Z","repository":{"id":66599673,"uuid":"82081745","full_name":"Soft/palettematch","owner":"Soft","description":"Find similar colors from a limited palette.","archived":false,"fork":false,"pushed_at":"2017-11-27T11:23:52.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-28T04:29:08.199Z","etag":null,"topics":["color-management","colors","rust","utility"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Soft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-15T16:32:40.000Z","updated_at":"2020-08-12T07:19:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"78816e22-463c-40ad-88ce-40ad58299845","html_url":"https://github.com/Soft/palettematch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soft%2Fpalettematch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soft%2Fpalettematch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soft%2Fpalettematch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soft%2Fpalettematch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Soft","download_url":"https://codeload.github.com/Soft/palettematch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245040869,"owners_count":20551332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["color-management","colors","rust","utility"],"created_at":"2024-11-29T17:19:06.058Z","updated_at":"2025-03-23T01:18:21.323Z","avatar_url":"https://github.com/Soft.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Palettematch 🌈\n\npalettematch — Find similar colors from a limited palette. Have you ever been\nin a situation where you had to find a color from a predetermined palette that\nmost closely resembled some other color? I know, we have all been there. Well,\nyou're in luck since palettematch makes finding similar colors a breeze. Color\nsimilarity is calculated using either CIE76 or CIE94 formulas.\n\nLet's say you have your set of available colors neatly listed in a file\n`palette.txt` and you want to know which one of them resembles lime green\n(`#00ff00`) the most. This is easily figured out:\n\n\techo \"#00ff00\" | palettematch palette.txt\n\n## Input formats\n\nAt present, palettematch only supports #rrggbb hex triplets as its input format.\nThe colors are assumed to be in sRGB color space.\n\n## Fun Things\n\nIn the scripts directory there are few fun examples of what can be achieved with\npalettematch. `scripts/color-squares.sh` script produces stunning presentations\nof RGB space using only ANSI escape sequences and the 256 colors supported by\nxterm. `scripts/catff.sh` displays\n[farbfeld](http://tools.suckless.org/farbfeld/) images in terminal. Now you can\nfinally replace your old and bloated image viewer with a simple Bash script!\n\n![lenna](https://i.imgur.com/SwHfhj2.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoft%2Fpalettematch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoft%2Fpalettematch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoft%2Fpalettematch/lists"}