Map/Interpolate Colour

General discussions about Inkscape.
Raspi
Posts: 188
Joined: Fri Oct 21, 2016 12:51 am

Map/Interpolate Colour

Postby Raspi » Fri Feb 17, 2017 7:39 am

Coming from the Vortex thread:
viewtopic.php?f=5&t=31821

Lets say i have a bunch of duplicate shapes. All the same colour.

Can i change the first and the last object's colour and interpolate the shades in between ?
There is an extension:
Modify Colour - Interpolate - Interpolate Attributes

But i dont understand how to use it.
I get weird results, or it crashes.

Whats especialy odd, is the start value has a word in it (a colour), but the End Value an RGB code.

Moini
Posts: 2222
Joined: Mon Oct 05, 2015 10:44 am

Re: Map/Interpolate Colour

Postby Moini » Fri Feb 17, 2017 7:58 am

See screenshot, for my settings (no crash).

The color values can be copied using the dropper tool. Just hold it above the color you want and hit Ctrl+C, then paste into the field, and make sure that a # is in front of the color value.

Bildschirmfoto_2017-02-16_22-56-39.png
Bildschirmfoto_2017-02-16_22-56-39.png (59.93 KiB) Viewed 1116 times
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Raspi
Posts: 188
Joined: Fri Oct 21, 2016 12:51 am

Re: Map/Interpolate Colour

Postby Raspi » Fri Feb 17, 2017 8:21 am

Moini wrote:See screenshot, for my settings (no crash).

The color values can be copied using the dropper tool. Just hold it above the color you want and hit Ctrl+C, then paste into the field, and make sure that a # is in front of the color value.

The tool seems to be the right one for the job, but im getting weird behaviour.

I hover the dropper over colour #1, copy and paste. All good.
When i hover dropper over colour #2 and copy/paste, its the value from colour #1, not #2....

When i finally have the codes right, it interpolates as expected, but the last shape has colour #1, all the others are correctly distributed.

However doublechecking on some plain rectangles, it works okay. Seems to be related to this very project, although the order of the shapes in the group is correct.
EDIT: it was a z-order thing.
Attachments
Interpolate.jpg
Interpolate.jpg (246.87 KiB) Viewed 1102 times

Moini
Posts: 2222
Joined: Mon Oct 05, 2015 10:44 am

Re: Map/Interpolate Colour

Postby Moini » Fri Feb 17, 2017 9:23 am

I'd check the stacking order. I think the last item needs to be either on top or at the bottom - opposite to where it currently is.
For the dropper tool to work, I think you need to click into the drawing once first, with selection tool (or at least better not with dropper), to move the focus back from the dialog. I had that issue, too ;-)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Map/Interpolate Colour

Postby ~suv » Fri Feb 17, 2017 11:11 am

Off topic:
Raspi wrote:There is an extension:
Modify Colour - Interpolate - Interpolate Attributes

But i dont understand how to use it.
Please note that this is a custom extension which is not bundled with Inkscape: the extensions in the sub-menu 'Modify Color' are installed by the inx-modifycolor set, including custom versions of the two extensions distributed with Inkscape to interpolate paths and/or attributes.
Raspi wrote:I get weird results, or it crashes.
Feel free to file an issue at the gitlab repository for any reproducible failures of the extension (ideally with a test case (Inkscape SVG file)).
Raspi wrote:Whats especialy odd, is the start value has a word in it (a colour), but the End Value an RGB code.
The custom 'Modify Color > Interpolate > Interpolate Attributes' extension supports several notations for color values: SVG color keywords ('red'), rgb() CSS color notation ('rgb(255,0,0)'), hsl() CSS color notation ('hsl(0,100%,50%)'), as well as hexadecimal notation ('#FF0000').

Moini
Posts: 2222
Joined: Mon Oct 05, 2015 10:44 am

Re: Map/Interpolate Colour

Postby Moini » Fri Feb 17, 2017 12:31 pm

Ah, only now I get that Raspi was talking about a different dialog.... LOL...
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Raspi
Posts: 188
Joined: Fri Oct 21, 2016 12:51 am

Re: Map/Interpolate Colour

Postby Raspi » Fri Feb 17, 2017 9:57 pm

Moini wrote:I'd check the stacking order.

Yes that was it. I edited my post later, but that may not be obvious on first glance.

Moini wrote:For the dropper tool to work, I think you need to click into the drawing once first, with selection tool (or at least better not with dropper), to move the focus back from the dialog. I had that issue, too ;-)

The workflow is totally compromised by the way the tools behave.

I had huge problems with the stacking order. Theres no way to know where an object is in the z-order, so im dabbling with the Arrange Extension and after applying im still in the dark, which object is where in the z-order.
There needs to be a way to visualize the z-order.
In AI everything is automatically on its own sub-layer.

Then the annoying behaviour of the dropper tool, not copying the colour-code for the second colour and im unable to press F1 for the Select Tool when the "Interpolate inside Group" Extension is open.
I think the Dropper needs an option to also select, when for example pressing a certain key.

Doing this simple effect took me over an hour....
Attachments
GradientVortex.png
GradientVortex.png (97 KiB) Viewed 993 times
Last edited by Raspi on Fri Feb 17, 2017 10:29 pm, edited 3 times in total.

Raspi
Posts: 188
Joined: Fri Oct 21, 2016 12:51 am

Re: Map/Interpolate Colour

Postby Raspi » Fri Feb 17, 2017 10:02 pm

~suv wrote:Please note that this is a custom extension which is not bundled with Inkscape: the extensions in the sub-menu 'Modify Color' are installed by the inx-modifycolor set, including custom versions of the two extensions distributed with Inkscape to interpolate paths and/or attributes.

You're right, i installed it some day, but didnt realize that its experimental. Will delete.

Feel free to file an issue at the gitlab repository for any reproducible failures of the extension (ideally with a test case (Inkscape SVG file)).

I dont think i can do that, because i dont remember what i did exactly.

Moini
Posts: 2222
Joined: Mon Oct 05, 2015 10:44 am

Re: Map/Interpolate Colour

Postby Moini » Sun Feb 19, 2017 4:19 am

You can use the objects dialog to visualize z-order, Raspi. Or, what I sometimes do is, I just move the object whose z-order I'm interested in to the object, whose z-order is relevant, look if it goes under or over, then use undo to put it back.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Moini
Posts: 2222
Joined: Mon Oct 05, 2015 10:44 am

Re: Map/Interpolate Colour

Postby Moini » Sun Feb 19, 2017 4:21 am

> Doing this simple effect took me over an hour....

Given that at first it took you a whole afternoon, this isn't bad ;-) (and it's not really simple, I find)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Raspi
Posts: 188
Joined: Fri Oct 21, 2016 12:51 am

Re: Map/Interpolate Colour

Postby Raspi » Sun Feb 19, 2017 6:58 am

Moini wrote:You can use the objects dialog to visualize z-order, Raspi.

Yes, i realized that later. Good we got the object manager with the new version !!

Moini wrote:> Doing this simple effect took me over an hour....

Given that at first it took you a whole afternoon, this isn't bad ;-) (and it's not really simple, I find)

Oh, the shade :lol:

It took me so long because the dropper tool was misbehaving, i was constantly struggling with pesky z-order issues and again and again confusing start and end object for the colour-interpolation.
Thats just struggling with the interface and not with the challenge.

Moini
Posts: 2222
Joined: Mon Oct 05, 2015 10:44 am

Re: Map/Interpolate Colour

Postby Moini » Sun Feb 19, 2017 8:02 am

"Oh, the shade :lol:"

Sorry, couldn't find this with a quick search - what does it mean?
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Raspi
Posts: 188
Joined: Fri Oct 21, 2016 12:51 am

Re: Map/Interpolate Colour

Postby Raspi » Sun Feb 19, 2017 8:29 am

I was joking.

Shade is slang for funny and/or clever disrespect.

It took one hour because the tools worked against me. Should have taken 15min. max !

Moini
Posts: 2222
Joined: Mon Oct 05, 2015 10:44 am

Re: Map/Interpolate Colour

Postby Moini » Sun Feb 19, 2017 11:20 am

Thx!
I'm now having this mental image of a dropper tool with eyes, a bit like Clippy, respectlessly pumping ink at you ;-P
Any ideas for personification of z-order?...

(can't fix anything about this - but you could make a feature request for the dropper tool to always just pick the color below, no matter where the focus lies. I don't know if that is possible, but you could try and ask.)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Raspi
Posts: 188
Joined: Fri Oct 21, 2016 12:51 am

Re: Map/Interpolate Colour

Postby Raspi » Sun Feb 19, 2017 9:51 pm

Moini wrote:Thx!
I'm now having this mental image of a dropper tool with eyes, a bit like Clippy, respectlessly pumping ink at you ;-P

Thankfully not, lol

Any ideas for personification of z-order?...

Not really, maybe a view mode where z-order is displayed by numbers or colours ?
But i think the object manager does the job well and in line with what other programs do.
Hopefully object manager and layers will be merged in a future version.

(can't fix anything about this - but you could make a feature request for the dropper tool to always just pick the color below, no matter where the focus lies. I don't know if that is possible, but you could try and ask.)

I will make a few suggestions and feature requests soon. I havent set up an email yet, and have to research how to make these requests and where.
Is there a how-to somewhere ?

Moini
Posts: 2222
Joined: Mon Oct 05, 2015 10:44 am

Re: Map/Interpolate Colour

Postby Moini » Mon Feb 20, 2017 10:13 am

Yes, kind of: https://inkscape.org/en/contribute/report-bugs/
But it's more for giving great info when you report a bug, so developers won't have to ask a lot of questions, and it's probably asking too much from the average user. For feature requests, it's ... useless.

What helps there is - depending on the requested feature - a really good description of which feature you're missing, and if it makes sense, an image with what one wants to see in Inkscape. For the dropper tool, a description should be enough - describe what you wanted to do, what you expected, and what happened instead, and why your suggestion would make sense (it saves time, and prevents mistakes). Keep it short and concise, to save the devs some time.
(none of these are absolute, only recommendations that make it as easy as possible to grasp the issue quickly).

The place where one can make feature requests is at https://bugs.launchpad.net/inkscape .
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “General Discussions”

Who is online

Users browsing this forum: Bing [Bot] and 3 guests