Random Colours from Palette

Post questions on how to use or achieve an effect in Inkscape.
ffartgoe
Posts: 2
Joined: Thu Dec 01, 2016 6:23 am

Random Colours from Palette

Postby ffartgoe » Thu Dec 01, 2016 8:00 am

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

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Random Colours from Palette

Postby Lazur » Thu Dec 01, 2016 9:12 am

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.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Random Colours from Palette

Postby Lazur » Sat Dec 03, 2016 4:55 am

By second thought, the component transfer can be edited by tables and not just sliders so its less complicated.

ffartgoe
Posts: 2
Joined: Thu Dec 01, 2016 6:23 am

Re: Random Colours from Palette

Postby ffartgoe » Sun Dec 04, 2016 12:04 am

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.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Random Colours from Palette

Postby Lazur » Sun Dec 04, 2016 5:57 am

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?

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Random Colours from Palette

Postby Lazur » Sun Dec 04, 2016 11:59 pm

Update: here is one an even bit closer to the goal.


Return to “Help with using Inkscape”