Hi,
I would like to colour a number of objects using random colours from my own palette. I found that someone asked a similar question a couple of years ago, and possibly even found a solution:
viewtopic.php?t=16806
However, I have no idea about how to deal with python and .inx files...
Can anyone please explain me step by step what should be done? (Or suggest another solution?)
Thank you in advance,
Fede
Random Colours from Palette
Re: Random Colours from Palette
Welcome aboard!
Can't say I can provide a straightforward solution for such a problem as per se.
I'd probably go cheap by using filtering.
If the palette consists of relatively few colours (ten the max*) a gradient map filter can be edited ""relatively"" easily.
Then, you could group the objects and add the filter to the group. It would map the palette's colours on the object's tone values, and therefore could use the tweak tool for randomizing the lightness values resulting in the desired appearance.
*Making a gradientmap filter is the easiest to go wrong with the gui.
The slider for the component transfer filter primitive which is the very base of it goes from -10,00 to 10,00, so a palette of ten is "easier" to handle.
Can't say I can provide a straightforward solution for such a problem as per se.
I'd probably go cheap by using filtering.
If the palette consists of relatively few colours (ten the max*) a gradient map filter can be edited ""relatively"" easily.
Then, you could group the objects and add the filter to the group. It would map the palette's colours on the object's tone values, and therefore could use the tweak tool for randomizing the lightness values resulting in the desired appearance.
*Making a gradientmap filter is the easiest to go wrong with the gui.
The slider for the component transfer filter primitive which is the very base of it goes from -10,00 to 10,00, so a palette of ten is "easier" to handle.
Re: Random Colours from Palette
By second thought, the component transfer can be edited by tables and not just sliders so its less complicated.
Re: Random Colours from Palette
Hi Lazur,
Thank you very much for replying. The number of colours is indeed 10 to 15. I'm not able to edit filters though (I'm really not an advanced Inkscape user).
I was wondering if there's an easier way to do it...
For example, I thought to select randomly my objects, and then apply the colours manually, but again I couldn't find any way to do a random selection.
Thank you very much for replying. The number of colours is indeed 10 to 15. I'm not able to edit filters though (I'm really not an advanced Inkscape user).
I was wondering if there's an easier way to do it...
For example, I thought to select randomly my objects, and then apply the colours manually, but again I couldn't find any way to do a random selection.
Re: Random Colours from Palette
Hi.
Just recently made a filter pack for gradient mapping of 1 to 16 colours.
With a bit of editing I can make that spot on for that task.
Like, what palette you want to use?
Just recently made a filter pack for gradient mapping of 1 to 16 colours.
With a bit of editing I can make that spot on for that task.
Like, what palette you want to use?
Re: Random Colours from Palette
Update: here is one an even bit closer to the goal.