Project

Paletti

0.0
No commit activity in last 3 years
No release in over 3 years
Paletti takes an image and finds its background color as well as the best primary, secondary, and detail text colors that are readable on the background color.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Paletti

Paletti takes an image and finds its background color as well as the best primary, secondary, and detail text colors that are readable on the background color.

Usage

Pal just takes one argument: a path to an image file. The path can be local or a remote URL.

pal image_path

The output will be formatted like this:

Background color:
R: 29 G: 31 B: 28

Text colors:
R: 97 G: 131 B: 99
R: 221 G: 242 B: 233
R: 155 G: 188 B: 167

The background color is the predominant color of the image at its borders. Paletti prefers non black or white colors, but it will return blacks and whites if they dominate the image.

Text colors are generated using the W3C recommendations.

Author

Satyam Ghodasara, sghodas@gmail.com

License

Paletti is available under the MIT license. See the LICENSE file for more info.