Custom colour palette.

Post questions on how to use or achieve an effect in Inkscape.
Frapperge
Posts: 2
Joined: Wed May 01, 2013 4:52 am

Custom colour palette.

Postby Frapperge » Wed May 01, 2013 5:00 am

Is there a way to compile a custom colour palette, storing all colours used in a piece of work? Such a drag to copy and paste the index every time you want to repeat the colour.
Apologies if this has already been answered.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Custom colour palette.

Postby brynn » Wed May 01, 2013 11:08 am

Image
Welcome to InkscapeForum!

It sounds like you're looking for Swatches. Help menu > Inkscape manual > Attributes > Fill and Stroke Paint > Custom Swatches. Using the gui, Object menu > Fill and Stroke > Fill tab and the swatches button looks kind of like an empty picture frame -- just an empty square with blue "frame" :D

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Custom colour palette.

Postby ragstian » Wed May 01, 2013 11:40 am

Hi

It's quite easy to create a "custom" palette.
There are different approaches depending on your requirements.

The easiest but also most cumbersome is to "Hand-Edit" a palette file using a regular text editor.
To have a look at the included palettes in Inkscape have a look at the files in Installdir/Inkscape/Share/Palettes - where your Installdir might be C:\ProgramFiles or something similar.
The file's will have a content like this;

Code: Select all

GIMP Palette
Name: Inkscape default
Columns: 3
# generated by PaletteGen.py
  0   0   0  Black
 26  26  26  90% Gray
 51  51  51  80% Gray
 77  77  77  70% Gray
102 102 102  60% Gray
128 128 128  50% Gray
153 153 153  40% Gray
179 179 179  30% Gray
204 204 204  20% Gray
230 230 230  10% Gray
236 236 236  7.5% Gray
242 242 242  5% Gray
249 249 249  2.5% Gray
255 255 255  White
....


The numbers columns are the Red Green and Blue Component values in the range 0 to 255.
Forth Column is a Text Comment which will show up when your mouse pointer is hovering over the color in the color menu.

Another approach to generate the palette from an existing image is to use the automatic function in GIMP and copy the palette file to Inkscape.
A detailed howto; http://graphicssoft.about.com/od/gimptutorials/ss/Color-Scheme-From-Photo.htm

The palette can also be generated from a program or script - for a python approach see this; http://www.filewatcher.com/m/PaletteGen.py.2679-0.html

To change the palettes in inkscape see one image from another thread on the forum;
(This is the least documented feature in Inkscape!! ) ;

Image

Good Luck.
RGDS
Ragnar
Last edited by ragstian on Mon Jun 03, 2013 3:46 am, edited 1 time in total.
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

User avatar
Xav
Posts: 1209
Joined: Fri May 08, 2009 1:18 am
Location: UK
Contact:

Re: Custom colour palette.

Postby Xav » Wed May 01, 2013 8:09 pm

If you just want to re-use the colours from an existing object in the drawing, you can use the :tool_dropper: tool to set the fill or stroke.
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter

Frapperge
Posts: 2
Joined: Wed May 01, 2013 4:52 am

Re: Custom colour palette.

Postby Frapperge » Wed May 01, 2013 10:35 pm

Thanks for all advice. Much appreciated:))


Return to “Help with using Inkscape”