Code Monkey home page Code Monkey logo

we-love-colors's Introduction

farben

License PyPI Build

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, farben creates master palettes for use in

Installation

It's available from PyPi:

# Using 'pip'
pip install farben

# Using 'poetry'
poetry add farben

Getting started

Using this library is straightforward - otherwise, --help is your friend:

$ farben fetch --help
Usage: farben [OPTIONS] COMMAND [ARGS]...

  PANTONE®, RAL®, Dulux®, Copic®, NCS®, HKS® and Prismacolor® color palettes
  for Scribus, GIMP, AutoCAD, Inkscape, Krita & LibreOffice.

Options:
  -v, --version  Show the version and exit.
  -h, --help     Show this message and exit.

Commands:
  fetch  BRANDS: pantone | ral | dulux | copic | ncs | hks | prismacolor

Using its fetch command is fairly easy, like that:

# Example 1
# - all brands
# - all palettes
$ farben fetch

# Example 2
# - all brands
# - only specific palette(s)
$ farben fetch -p gpl
$ farben fetch -p gpl -p acb

# Example 3
# - only specific brand(s)
$ farben fetch copic
$ farben fetch copic dulux

.. you get the idea!

FAQ

Q: But where do all those files go? A: That depends, ..

  • .. .xml files may be loaded individually with Edit - 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 in Edit - Preferences - System - User Config (Inkscape)
    • importing them using the palette docker (Krita)
  • .. installing .acb files is pretty straightforward

Color samples

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.

Once you retrieved color palettes, you can

  • view them using PHP like this: cd examples/{brand} && php -S localhost:8000
  • view static HTML page like this: cd examples && python build.py

When clicking on a color tile, its hex value is copied to your clipboard (powered by clipboard.js).

Copyright

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 ..

We assume neither ownership nor intellectual property of any kind - color codes (and names), sRGB and/or hexadecimal values are publically available on the internet.

Similar projects

  • For Scribus, there's also the (currently unmaintained) package SwatchBooker

Happy coding!

©️ Fundevogel Kinder- und Jugendbuchhandlung

we-love-colors's People

Contributors

berteh avatar s1syphos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

we-love-colors's Issues

Colors references in Gimp

I have imported the pantome colors in Gimp, but their references are missing. When I have chosed colors and designed with them, I need to provide their pantome references to printers.

Would it be possible to get the pantome references in Gimp?

Fetching & Processing will sometimes only produce .JSON

Doing 'colors fetch --all && colours process' doesn't seem to work. 'colors fetch && colors process' seems to get .JSONS for all apart from copic and prismacolour which seems to not have an attribute called 'fetch_all'? Doing the colours individually does the same, except pantone and dulux now add all the other file formats; ral stays the same at just .JSON?

  • OS: Ubuntu 20.04 running KDE Plasma 5.18.5

Looks like an interesting project. I work as admin/marketing for a window/door company so RAL in GIMP is a timesaver, so I will be grateful to any help :)

Aaron

example doesn't work

in the readme the command

colors fetch --all && colors process

is given as an example. However:

Usage: colors fetch [OPTIONS] [BRANDS]...
Try 'colors fetch -h' for help.

Error: no such option: --all

It seems that's not a correct syntax. Either a bug with the software or the documentation.

Trouble Outputting a GPL file

Describe the bug
Processing the outputted JSON's does not work out and leaves user with unusable json files

To Reproduce
Steps to reproduce the behavior:

  1. Fetch pantones or any other color
  2. Submit process command

Expected behavior
Should output a .gpl

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10

Additional context

Might just be me, im just trying to get a gpl file and all i have is the json, Thank you!

Add support for sK1 2.0 palettes (SKP)

Describe the solution you'd like

Add support for SKP pallettes.

Describe alternatives you've considered

Add we-love-colors plugin for sK1 2.0; this is mostly task for @sk1project

Additional context

Here is free (Public Domain) palettes collection in SKP and other formats:

some minor problems

Hello!

I have some minor problems with We love colors! :

in the file that generates the gpl files the xml rows should be modified to add one # after each \n -> <'xml': '\n # PANTONE® and related trademarks are the property of\n # Pantone LLC (https://www.pantone.com), a division of X-Rite, a Danaher company\n '>
Otherwise the file is not read by inkskape

fetching prismacolor causes an error in cli.py

copic website has been moved and updated, so trying to extract data outputs an error

<colors fetch --all> outputs an error, claiming that the option does not exist. I think that once upon a time the option must have been eliminated for a simpler: no args=all, but in the readme.md it has not been updated.

For some mysterious causes: <colors fetch && colors process> does not work (on my linux Manjaro at least) It executes the first command and stops. Probably the first does not output anything and the && stops

By the way: thanks for the nice script, it does a very useful job!!!

Desktop (please complete the following information):

  • OS: Manjaro Linux

PS
I just don't know how to send a suggestion, so I append here:
Any chance to get an update with NCS palette?
https://www.e-paint.co.uk/NCS-2050-index-colour-chart.asp
https://ncscolour.com/product-category/shop/colour-samples/
:) Thanks!

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.