Editing Gradients Problem

Post questions on how to use or achieve an effect in Inkscape.
pmprog
Posts: 2
Joined: Mon Apr 27, 2015 7:24 pm

Editing Gradients Problem

Postby pmprog » Mon Apr 27, 2015 7:37 pm

Hi,

I upgraded to v0.91; and I'm really struggling to work out how to edit my gradients. I must admit, the way 0.91 edits gradients compared to 0.48 is very confusing, but I thought I was starting to get the hang of it... until...

So, if I start a new drawing, and draw a rectangle using the :tool_rectangle: tool. It draws me a box with a green centre and a red border (not sure if this is tool defaults, or just based of some last setting, but doesn't really matter).

Then I switch the fill to gradient, and the green fades to transparent. All good so far.

Next, I change my stroke to gradient, and that changes to red->transparent.

Finally, when try to edit the transparent colour of the border, it changes the colour on the fill too; and vice versa!

How do I make my rectangle have two different gradients that don't "overwrite" each other?

I hope we can get some real improvements to the way gradients can be edited (or maybe the old gradient edit window back?)


On a semi related note, is there a way to default "Snap cusp nodes" on? This is another annoying little change that was made since I upgraded from 0.48

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

Re: Editing Gradients Problem

Postby brynn » Tue Apr 28, 2015 4:37 am

When you get to this point
Finally, when try to edit the transparent colour of the border, it changes the colour on the fill too; and vice versa!

are you now editing on the canvas with the Gradient tool?

What happens when you have a gradient on the fill and a separate gradient on the stroke of the same object, and depending on how you created the gradient, is that the gradient handles lie precisely right on top of each other. As far as I can tell, it's impossible to edit either one. In this case, the only way I've found to edit, is to drag the gradient handles apart. This does change how the gradient fills the fill or stroke, but after you make your changes, you can drag the handle back into place.

To drag the handles apart, hold Shift key while you grab the square handle and drag it away from the other. Those square handles are locked together, so you have to hold Shift to unlock them. And you have to drag it some distance, or it will snap back into its locked position.

However, the other day, I found out the old gradient editor isn't entirely gone! If you go into Inskcape Preferences > Tools > Gradient, put a check beside "Use legacy gradient editor", then go in the Fill and Stroke dialog and click the tiny pencil and paper icon on the bottom, left corner of the dialog. That opens the old editor :D (An object with a gradient has to be selected, to see the icon.)

So, if you created the gradient by selecting the object, and clicking one of the gradient buttons in the Fill and Stroke dialog, it automatically creates the gradient centered in the object's fill and/or stroke. And that's how they become stuck on top of each other. But if you create the gradient by dragging the gradient tool over the object, you can see to it that the handles are already separated. Then you can drag them together later, if you need to. Just remember when you're dragging the gradient handles, when they get close to each other, they will automatically snap and be locked together -- no matter whether you have snapping enabled or not! And also remember that the Shift key is the key to unlocking them :D

If that doesn't answer your question, would you please explain in detaill exactly the steps you take -- which buttons you click or what tool you're using, what you do on the canvas, etc.

pmprog
Posts: 2
Joined: Mon Apr 27, 2015 7:24 pm

Re: Editing Gradients Problem

Postby pmprog » Tue Apr 28, 2015 4:59 am

brynn wrote:To drag the handles apart, hold Shift key while you grab the square handle and drag it away from the other. Those square handles are locked together, so you have to hold Shift to unlock them. And you have to drag it some distance, or it will snap back into its locked position.

Ah, nice! Thank you! Works a charm, if a little "hidden".

brynn wrote:However, the other day, I found out the old gradient editor isn't entirely gone! If you go into Inskcape Preferences > Tools > Gradient, put a check beside "Use legacy gradient editor", then go in the Fill and Stroke dialog and click the tiny pencil and paper icon on the bottom, left corner of the dialog. That opens the old editor :D (An object with a gradient has to be selected, to see the icon.)

Also great news. I hope they leave this option in. I prefer this option, but both work great.

Thank you, you've been extremely helpful :)


Return to “Help with using Inkscape”