Giter Club home page Giter Club logo

rgb2pal's Introduction

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.

rgb2pal's People

Contributors

dsalychev avatar

Stargazers

 avatar  avatar

rgb2pal's Issues

Expand output a bit?

1). Would be great if the output contained the provided color as well, something like this:

$ rgb2pal 880000 terminal256.palette
#880000: 88 #870000

Such reference could be very helpful in case of feeding a whole pack of colors from an external file, like this:

while read p; do rgbpal $p; done < col.txt

2). Also, for some additional visualisation it might be helpful to actually colorize the output according to the resulting colors?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.