-
Notifications
You must be signed in to change notification settings - Fork 0
Find a nearest color to the RGB one from a palette
License
dsalychev/rgb2pal
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
RGB to palette -------------- It's a program to find a nearest color from the given palette to the selected 24-bit RGB. It calculates a distance between two colors in YUV colorspace in order to find similar ones according to the "average human perception". How to install -------------- Running: $ mkdir build && cd build $ cmake .. && make install from the repository root should generally be enough to install the program. Please, note that terminal palette won't be installed by default. How to use ---------- In order to find the nearest color to #BC7575 from a palette with 256 terminal colors, run: $ rgb2pal bc7575 terminal256.palette 131 #af5f5f You'll receive a color with index 131 which value is #AF5F5F.
About
Find a nearest color to the RGB one from a palette