This library provides an easy way to generate color palettes:
In computer graphics, a palette is a finite set of colors. — Wikipedia article 'Palette (Computing)'
.. often referred to as Swatches (as branded by Adobe Inc.):
Swatches are named colors, tints, gradients, and patterns. — Adobe Illustrator
.. featuring the following (proprietary) color spaces:
For now, we-love-colors
creates master palettes for use in
- Scribus (XML)
- GIMP and Inkscape (GPL)
- AutoCAD (ACB)
- LibreOffice (SOC)
Depending on your setup you might prefer a ..
Running setup.sh
will install all dependencies inside a virtual environment, ready for action.
It's as easy as pip install -r requirements.txt
, but you might want to make sure that Python v3 is installed on your system.
Fetching color sets and processing them is really straightforward - for everything else, there's --help
:
$ python main.py
Usage: main.py [OPTIONS] COMMAND [ARGS]...
Options:
-v, --version Show the version and exit.
-h, --help Show this message and exit.
Commands:
fetch ARGS: pantone | ral | dulux | copic | prismacolor
process ARGS: pantone | ral | dulux | copic | prismacolor
Using its commands fetch
and process
is fairly easy, like that:
# Example 1 - Gotta fetch 'em `--all`:
$ python main.py fetch --all && python main.py process
# Example 2 - Fetching specific sets & processing them:
$ python main.py fetch copic dulux && python main.py process copic dulux
Q: But where do all those files go? A: That depends, ..
- ..
.xml
files may be loaded individually withEdit - Colours & Fills - Solid Colours - Import
(Scribus) - ..
.soc
files belong here:~\AppData\Roaming\libreoffice\3\user
(Windows + PowerShell, otherwise%userprofile%
)~/Library/Application Support/libreoffice/4/user/config
(Mac)~/.config/libreoffice/4/user/config
(Linux)
- .. installing
.gpl
files boils down to:- moving them to any path specified in
Edit - Preferences - Folders - Palettes
(GIMP) - moving them to
palettes
under directory specified inEdit - Preferences - System - User Config
(Inkscape)
- moving them to any path specified in
- .. installing
.acb
files is pretty straightforward
If you are looking for a quick way to browse PANTONE® colors, check out the Pantone Finder package or visit their website to get started.
For all included colors, there are preview files, to be found in the examples
folder: Open up index.html
, generated with examples.py
(for its PHP version, just php -S localhost:8000
).
When clicking a color tile, its hex value is copied to your clipboard - brought to you by clipboard.js.
Whenever mentioned throughout this project, PANTONE® and related trademarks are the property of Pantone LLC, a division of X-Rite, a Danaher company.
The same applies to ..
- RAL® and related trademarks of RAL gGmbH (non-profit LLC) and RAL Deutsches Institut für Gütesicherung und Kennzeichnung e. V.
- Dulux® and related trademarks of AkzoNobel N.V. (worldwide) and DuluxGroup (Australia & New Zealand)
- Copic® and related trademarks of Too Marker Corporation
- Prismacolor® and related trademarks of Berol Corporation, owned by Sanford L.P., a Newell Brands company.
We assume neither ownership nor intellectual property of any kind - color codes (and names), sRGB and/or hexadecimal values are publically available on (one of) their respective websites.
- For Scribus, there's also the (currently unmaintained) package
SwatchBooker
Happy coding!
©️ Fundevogel Kinder- und Jugendbuchhandlung