Gradient along a path ?

Post questions on how to use or achieve an effect in Inkscape.
User avatar
Hibou57
Posts: 29
Joined: Sat Jan 17, 2009 10:57 pm
Contact:

Gradient along a path ?

Postby Hibou57 » Thu Jan 27, 2011 9:04 am

Hello,

I first tried looking at all menu trying everything, then searched the web, but could not find about what I am seeking for. Is there a trick to get gradient along a path (like a curved path) in Inkscape ?

I tried with “Pattern along w path” using a bitmap with the expected gradient color, but the bitmap does not follow the path the way I would like (I tried to stretch a unique pattern).

May be some one know a trick ?

How may be there is a way to draw a path using a dynamic brush like the one which comes with GIMP ? Unfortunately, if I use GIMP, I have to regenerate each time I change the curve, and I do not know a way to attach a brush to a path in Inkscape.

May be via scripting ?

-- EDIT -- Path effect would be exactly what I am looking for, if it could apply fill-up and not just the outlining path of a shape. If I draw something to be used as a brush, then fill it, then draw something, apply a path effect which use the brush, then any fill-up color or gradient is simply ignored. Is there a way to make path effects to apply colors and gradient of the source pattern ?

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Gradient along a path ?

Postby prkos » Thu Jan 27, 2011 2:19 pm

Here are some examples:

http://www.flickr.com/photos/35772571@N03/3312087295/
http://simarilius.wordpress.com/2006/10 ... -inkscape/

you can interpolate paths or use a lot of nodes with vertical markers
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

User avatar
Hibou57
Posts: 29
Joined: Sat Jan 17, 2009 10:57 pm
Contact:

Re: Gradient along a path ?

Postby Hibou57 » Tue Feb 01, 2011 7:13 pm

prkos wrote:Here are some examples:

http://www.flickr.com/photos/35772571@N03/3312087295/
http://simarilius.wordpress.com/2006/10 ... -inkscape/

you can interpolate paths or use a lot of nodes with vertical markers

Pkros, the first picture is very nice indeed :)

However, I feel it would be better to have a look some time at some way to do it cleany via-script/add-ons. I may look at it a later day, as I feel this is badly missing.

I do not expect it to be Live Time like LPE are, I would like instead something which would rendered on request, with some layout property attached to a path or a filled-path.

By the way, I wonder if this could be a good to seek for to have a distinction between model and render with SVG, just like the way there is one with 3D design.

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

Re: Gradient along a path ?

Postby brynn » Sun Feb 06, 2011 10:23 am

By the way, I wonder if this could be a good to seek for to have a distinction between model and render with SVG, just like the way there is one with 3D design.

I'm not familiar with 3D design, but Inkscape extensions have a Live Preview option.

User avatar
Hibou57
Posts: 29
Joined: Sat Jan 17, 2009 10:57 pm
Contact:

Re: Gradient along a path ?

Postby Hibou57 » Sun Feb 06, 2011 8:44 pm

brynn wrote:
By the way, I wonder if this could be a good to seek for to have a distinction between model and render with SVG, just like the way there is one with 3D design.

I'm not familiar with 3D design, but Inkscape extensions have a Live Preview option.

Reading your quote from my own post, I feel some days I'm really unreadable :oops:

Well, the idea was exactly the opposite of a Live Preview. 3D modeling is typically done on a view which does not show as much details as the final rendering, just because some machines are too slow or because this would be too much complex. So there is a model, and a render of that model, and those are different things, at different time of the work.

When I was thinking about some kind of dynamic brushes or pens to draw an SVG path which may not be frozen (unlike what you get in GIMP or the like), I though this could be too much difficult to have a live display. That is what I meant when talking about rendering only at the final step, the one where you typically export to PNG (or else render internally just to see what this really look like, just to check).

With 3D modeling, you have textures, materials, which are most of time not visible while editing (at most, just a simplification of these textures and materials). The suggestion was this could be easier to have the same behavior with complex SVG renders. Dynamic brushes and pens applied to non-frozen path, may not be that much different than textures and materials in the 3D area.

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

Re: Gradient along a path ?

Postby brynn » Sun Feb 06, 2011 11:06 pm

Reading your quote from my own post, I feel some days I'm really unreadable

No worries, we muddle through :D And we don't forget to laugh :lol:
Sorry for my misunderstanding Image I learn as I go, especially from mistakes 8-)
All best :mrgreen:


Return to “Help with using Inkscape”