Palette Generator

New version:1_3
Add to palette black, gray and white by default.

New version:1_2
Save palette bug fixed.

Version:1_1
Adjust light of scheme work fine (I hope!)

It generates palette by following the harmonic schemes of color: monochromatic, complementary, triadic, tetrad and analogous.
Options:
- you can choose between the digital wheel (RGB) and the real wheel (RYB);
- you can choose whether to use the color "web safe" or not;
- you can see in real time in a preview page the combination of colors;
- you can save a Gimp or Inkscape palette.
Required python libraries: :
- GrapeFruit-0.1a3
INSTALLATION: copy file gimp_palette_generator.py to the standard place for plugins (folder "plug-ins").

See: http://krypt77.altervista.org/index_gimp.htm

AttachmentSize
gimp_palette_generator.py75.49 KB
gimp_palette_generator_1_1.py76.27 KB
gimp_palette_generator_1_2.py68.78 KB
gimp_palette_generator_1_3.py69.41 KB
0

Comments

Palette Script for those without python

If you don't have python, another option is a script I wrote for someone on GimpTalk:
http://ffaat.pointclark.net/incoming/scripts/colour_scheme_palette.scm

It will create a new palette (or update the existing palette) based on the current FG colour.

It registers twice, once with an option to specify a palette name and once without the dialog so you can quickly regenerate the palette by binding it to a keypress with no pop-up dialog.

The palette created has the following groups (separated by a black colour spacer):

-Complementary set (FG + complementary hue)
-Analogous colour set (FG + 30degrees hues either side)
-Triadic colour set (FG + two equally spaced hues, 120 degrees apart)
-Split Complementary (FG + 150degree hoes either side)
-Tetradic (FG + Complement + 60 degrees one side, 120 degrees the other)
-Square (FG + 3 equally spaced hues, 90 degrees apart)

-Rob A>

Ubuntu install difficulty

Hey thanks for putting this plug-in together, I've been thinking about something like this for a while. I'm having trouble though getting it to work. I'm using Ubuntu 8.10 64-bit. I installed the gimp_palette_generator_1_2.py to my ~/.gimp2.6/plug-ins/ directory. I have also installed the grapefruit library, though I wasn't sure if I needed to place the grapefruit.py file anywhere in particular. I tried putting it in my /usr/lib/python2.5/ directory but it still doesn't work - does it need to go somewhere specific? When it is working how do you use the plug-in in GIMP? - where should the plug-in appear in the menus? Thanks, Matt

RE: Ubuntu install difficulty

GrapeFruit-0.1a3 Untar (or unzip) the source distribution, go into the new dir and run command line: setup.py build setup.py install -------------------------------- Menu: Gimp 2.6 Colors-->Palette Generator Gimp 2.4 Xtns-->Palette Generator

Another Ubuntu install solution

1. According to instructions at http://code.google.com/p/grapefruit/ - as well as figuring out a couple things on my own - I installed Grapefruit this way (after cd-ing to folder): $ python setup.py build $ python sudo setup.py install 2. I also had to copy the palette generator plugin file to this directory: /usr/lib/gimp/2.0/plug-ins/ (not to the plugin directory in the user's home) 3. I also had to change the permissions on that file to execute: $ cd /usr/lib/gimp/2.0/plug-ins/ $ sudo chmod +x gimp_palette_generator_1_3.py Thanks for the plugin! :) I hope this might help someone else. Jim

Thank you!

Thanks mate, got it working. I'm using Gimp 2.6 and I had to change the menu so it would appear in "/Xtns", as it wouldn't work if it was set to "/Colors". Great plug-in! - just what I was looking for

How to install on Windows XP?

This does look like just what I need, but am clueless how to install it on Windows XP. Is it possible? Any help for a complete idiot, please?

RE: How to install on Windows XP?

Download and copy the script in: "C:\Documents and Settings\name_ut\.gimp-2.6\plug-ins" name_ut= your dir name Have you install GrapeFruit-0.1a3? Download it. Untar (or unzip) the source distribution, go into the new dir and run command line: setup.py build setup.py install Do you have gtk? Download and install pycairo, pygobject e pygtk (python 2.5): http://www.pygtk.org/downloads.html Download and install GTK+ : http://gtk-win.sourceforge.net/home/...p/en/Downloads

This Might Sound Corny, But...

I was able to compile the grapefruit.py file simply by double clicking setup.py - followed by double clicking grapefruit_test.py. Once the newly created grapefruit.py was created (it will show it's now a compiled file) I added the newly compiled grapefruit.py along with the gimp_palette_generator.py to my gimp users plugin folder and it worked. Great plugin, btw, thanks so much! Using: Vista Home Premium GIMP 2.6.6. Python 2.6 P.S. I had tried every mentioned command line entry given (build and install), and even read up on the Python website, regarding proper syntax for my version, and it still kept giving me invalid syntax errors no matter what I typed. Quite by accident, I discovered that double clicking the setup and test files actually executed the compilation, creating the new file. I had no idea it would do that. Does anyone have any idea what happened here? I'm curious.

It worked for me too (Windows XP)

Just double click the setup.py and then double click the test.py and it compiles.
Place both the generator plugin and the new compiled grapefruit file in the plugins folder and there you go. :)

Image example

The folder (zipped tar), must have everything it needs to build by clicking the setup and test run files.
I do not have any compilers installed so i do not know what gives there.But i am happy with the results.
I just wanted to confirm it with an image and another user compile.Pretty cool!
Nice filter by the way!

Thanks.

It worked, but I had to

It worked, but I had to "chmod +x" the plugin, and run "setup.py install" with sudo...

RE: How to install on Windows XP?

Thanks a lot, mate, I'll have a go at that at the weekend. Thanks for your help.

Many thanks! This is what I

Many thanks! This is what I was looking for. Bye bye Agave.
Syndicate content