Can Inkscape Duplicate this Illustrator Image ?

Post questions on how to use or achieve an effect in Inkscape.
inkschaap
Posts: 36
Joined: Fri Oct 28, 2011 11:34 pm

Can Inkscape Duplicate this Illustrator Image ?

Postby inkschaap » Tue Aug 11, 2015 9:57 am

The image below is from a Photoshop tutorial. Can we do this in Inkscape?

http://blog.spoongraphics.co.uk/tutoria ... llustrator

I was stopped almost at the beginning when it talks about creating a brush. Apparently we can't do that in Inkscape. So how else can I apply that stripy pattern to a circle or path or whatever. Help.

Also when I'm finished how would I apply the gradient to the stripy flow path?

Image
Last edited by inkschaap on Tue Aug 11, 2015 12:38 pm, edited 2 times in total.

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

Re: Can Inkscape Duplicate this Photoshop ?

Postby Lazur » Tue Aug 11, 2015 11:27 am

There are a few ways to draw that.

You can use a pattern along path lpe/extension for the base and edit the result slightly manually at the overlappings.

Or use various stroke widths of duplicants of the same path -the interpolate attribute inside group can come handy.
The overlapping would need to split the core path to sections and playing with the z-ordering.

Also you can use a custom marker in combination with pattern along path lpe, to overkill the problem.



The fill doesn't follow along the path, it's a simple linear gradient.
If it should, well...


bru.png
bru.png (1.07 MiB) Viewed 7114 times

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby Espermaschine » Tue Aug 11, 2015 2:24 pm

Its basically what is shown in this heathenX video, isnt it ?

http://screencasters.heathenx.org/episode-097/

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

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby brynn » Tue Aug 11, 2015 2:29 pm

Hah! There's a really old message asking that sam question! When I first opened the message, I had to double-check the date, because I thought this might have been that old topic getting new life. Although I don't know exactly which search words might find it. Maaybe "illustrator" and then skip to the last page of the results, and work forward.

I don't remember the answer, but there is a way to do it, for sure!

Oops, looks like Esper might have found it before I ever posted about it!

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

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby Lazur » Tue Aug 11, 2015 8:26 pm

Is this the original tutorial?:

http://forum.vietdesigner.net/threads/tao-hinh-hoc-stripy-dong-nghe-thuat-trong-adobe-illustrator.73097/
-Oh never mind, see you edited your post with a link to the original.-

So you don't need the effect along a random shape, but you would like to build the image from circular parts?
The previously suggested methods work on almost any random shape, only smaller bending radiuses than the pattern's width would produce weird looking results.

With interpolate subpaths you can generate parallel lines quickly, then it's a matter of snapping to position.
(Or again, you can use the interpolate attribute in group to represent the shape by strokes and no filled paths.)

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Can Inkscape Duplicate this Photoshop ?

Postby Espermaschine » Wed Aug 12, 2015 2:51 am

Lazur URH wrote:You can use a pattern along path lpe/extension

How do you do that ?

When i use the LPE i get a bunch of black stroked boxes, while the Pattern along path extension works as expected.
Attachments
PaP.png
PaP.png (46.35 KiB) Viewed 7046 times

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

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby Lazur » Wed Aug 12, 2015 7:01 am

^-- The lpe cannot use groups as patterns as far as I know, and the object retains its previous attributes.
Other than that, the boxes show the pattern is repeated instead of single, stretched.

If the three paths are combined together, it should work better.

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby Espermaschine » Wed Aug 12, 2015 7:22 am

Lazur URH wrote:If the three paths are combined together, it should work better.

Eh ?
When i combine the three boxes, they all become the same colour....

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

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby Lazur » Wed Aug 12, 2015 9:04 am

Recreated the core path, but maybe it's not a nice move to share it under public domain when the image is provided for members only at the original source.

Think I'm doomed to make something different, showing a variety of the mentioned approaches.

inkschaap
Posts: 36
Joined: Fri Oct 28, 2011 11:34 pm

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby inkschaap » Thu Aug 13, 2015 9:25 am

Lazur, are you going to post your version of this? I'd like to see.

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

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby Lazur » Thu Aug 13, 2015 10:31 am

Planning to share something alike, though would prefer a different shape.
While thinking of a simpler one, got sidetracked and made this trefoil knot.
And right after the same thing on a blackboard with chalk.
Another sidetrack, chalk filter.

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby Espermaschine » Thu Aug 13, 2015 11:15 am

Lazur URH wrote:Planning to share something alike, though would prefer a different shape.
While thinking of a simpler one, got sidetracked and made this trefoil knot.
And right after the same thing on a blackboard with chalk.
Another sidetrack, chalk filter.


thats a beauty !!!

Image

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

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby Lazur » Thu Aug 13, 2015 12:05 pm

Off topic:
Espermaschine wrote:thats a beauty !!!



Thank's!

Still it was drawn with blurring and no overlapping, whereas the "real thing" takes way more serious work. (In progress, postponing as usual.)

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby Espermaschine » Thu Aug 13, 2015 12:19 pm

Lazur URH wrote:real thing" takes way more serious work.

I was just trying to make an example of the real thing and it is a total pain.

Made a curved path and then applied a 1px wide black and white pattern along the path.
The result is not very beautiful (jagged around the curves) and my computer starts seriously lagging.
I then used a clone of the pattern to clip a rectangle with a gradient fill.

Again, the result is not overly beautiful but getting the 3D edited is impossible for me. Too many nodes !

Example is without any overlap.
Attachments
rasloop.png
rasloop.png (53.89 KiB) Viewed 6896 times
Last edited by Espermaschine on Thu Aug 13, 2015 5:34 pm, edited 1 time in total.

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

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby Lazur » Thu Aug 13, 2015 1:08 pm

Something really quick, without further explanation.
Just before sleep.

squiggle.svg
(602.38 KiB) Downloaded 260 times

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby Espermaschine » Thu Aug 13, 2015 1:35 pm

I struggled through a second attempt, which was as painful as my other strategy, but more successful.

So i started with a path width 12px and increased each duplicate by 2x12px.
Several boolean operations (Difference) to get individual curves and then applying a gradient to each, aligned with the help of a frame i drew around the whole thing.

The crossing was done with lots of editing.

Sorry but this effect is way too boring for such a lot of work....


Lazur URH wrote:Something really quick, without further explanation.

Whaaat ????
I have no idea what you did there....

In step two you have suddenly 24 copies with decreased opacity, and then its all blurred and from there you have each copy reduced to a line ????
Is this magic ?
:o :lol:
Attachments
rasloopII.png
rasloopII.png (49.29 KiB) Viewed 6883 times

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

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby brynn » Thu Aug 13, 2015 2:07 pm

Whaaat ????
I have no idea what you did there....

In step two you have suddenly 24 copies with decreased opacity, and then its all blurred and from there you have each copy reduced to a line ????
Is this magic ?


Yes, Lazur is famous for glossing over complicated steps in just a couple of words, in his tutorials. :P Now you made me curious and I'll have to dl the file :lol:

Edit
Oh, and there aren't even any words here. We will have to be detectives. But what better way to learn?!

Hhmm, did you find the trick yet, Espermaschine? I see how it's done!

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby Espermaschine » Thu Aug 13, 2015 2:58 pm

brynn wrote:Hhmm, did you find the trick yet, Espermaschine? I see how it's done!

No, i have no idea.

I tried to be clever and go the route of the original tutorial, but this evil program doesnt let me :(
Attachments
cryloops.jpg
cryloops.jpg (156.38 KiB) Viewed 6856 times

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

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby brynn » Thu Aug 13, 2015 3:03 pm

That looks pretty good! Looks like you just need to join the nodes.

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby Espermaschine » Thu Aug 13, 2015 3:06 pm

brynn wrote:That looks pretty good! Looks like you just need to join the nodes.

Well i thought, if Inkscape doesnt have layermasks then i just apply the colour in Gimp, but as you can see, Inkscape still produces these gaps.... :|
I cant join the nodes because, the curves are circles (segments).

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

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby brynn » Thu Aug 13, 2015 4:33 pm

Object to Path?

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby Espermaschine » Thu Aug 13, 2015 5:04 pm

brynn wrote:Object to Path?

No, instead of overlapping circles or segments, you have to make each element a stroke, and then stroke to path.

So heres my final "cheating" result. Cheating meaning i added the gradient in Gimp (and a shadow).

Image

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

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby Lazur » Thu Aug 13, 2015 6:59 pm

Lazur URH wrote:
squiggle.svg


Lazur URH wrote:Or use various stroke widths of duplicants of the same path -the interpolate attribute inside group can come handy.
The overlapping would need to split the core path to sections and playing with the z-ordering.



So in a nutshell, the process can be done as follows:

  1. draw core path
  2. make several duplicants of it
  3. preferably lower the transparency so you can see one through another
  4. group paths together
  5. use the interpolate attribute in group to vary the stroke widths,
    resulting in even steps between them, with the thinnest on top
    (seems that on my quick example the last step is off)
  6. select every second path and give them a different stroke colour, like red
  7. change back object opacity to 100%
  8. convert objects to path (in case of spiro path lpe used)
  9. if you want to make the overlapping effect, select all paths with the node tool,
    and use the split node and breaking apart options to "chop" the path into sections
  10. adjust each section's z-ordering to achieve the right look
    (by playing with the stroke style, it can be better than in the example)
  11. for an easy way of filling (again, instead what's in the example svg), convert strokes to paths
  12. draw a rectangle with the desired gradient on top of the image
  13. cut it (Ctrl+X)
  14. select all the red filled paths with the find tab
  15. paste in style (Ctrl+Shift+V)
  16. similarly add the other paths the fill of the background

Some flaws of this solution:
converting strokes to paths can result in not so clean paths -which is why I didn't do it in that svg-,
On an other hand, if you want to preserve stroked paths it can be a bit complicated.
Would need to group each "sections" paths together, and after pasting in style attribute in the same vein as with the rectangle (draw rectangle with no fill, but stroke this case and add the preferred gradient to the stroke attribute),
the stroke widths should be varied again with the interpolate attribute in group extension as at the start, for each and every section.

Another "problem" is, that the shape is not transparent -just as in that illustrator tutorial, before compositing-, meaning, if you want to superimpose this squiggle over something that would need to show through, you need a different approach for the fill.
Then white and black fills/stroke colours would do the task, after all objects are grouped together,
the group could be used to mask a rectangle with the preferred fill.
Problem with that is pdf doesn't have a good support for masking, nor all browsers would render it right as an svg.


Hope this can make up a clear explanation of the "trick".

In steps 1.-9. obe way is described, but using other workarounds like the pattern along path or separate circle segments as in the original tutorial would work;
the splitting objects and playing with the z-order is yet another technique on its own -which can be represented well on that knot pattern, similarly as the challenge example in the manual.


But to be honest, if you draw the shape showing overlaps, represented by one compound path only, it can be the most clean in structure, even though it's much harder to pull off.

User avatar
bartovan
Posts: 191
Joined: Sun Feb 09, 2014 4:14 am
Location: Belgium
Contact:

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby bartovan » Thu Aug 13, 2015 6:59 pm

I don't know if this is an answer to the question or if it adds something meaningful here, but using only Generate from Path -> Pattern along Path and one gradients on a fill I did this:
ribbon_gradient_02_02_capture.PNG
ribbon_gradient_02_02_capture.PNG (72.54 KiB) Viewed 6798 times

In short:
- I used two separate patterns, one for the colored stripes and one for the white stripes (width 1 px)
- I used a copy of the path, from which I removed certain parts, to make the overlays (where the ribbon goes up/under itself)
- so I have three "pattern along path" forms in total: one with the colored stripes, one with white stripes, and then a final one with white stripes only for the overlaps.
See attached SVG.

It remains a bit cumbersome, and you can't make changes to the path afterwards... And as I understand, LPE Pattern along path only allows for paths as pattern.

(I notice now that the overlaps seem a bit incorrect on the screenshot, which is strange because on my screen they look perfect, see screenshot of zoom in below)
ribbon_gradient_02_02_capture_detail.PNG
ribbon_gradient_02_02_capture_detail.PNG (11.08 KiB) Viewed 6798 times
Portfolio bartovan.com
Tumblr / Instagram / Pinterest / Facebook / Twitter / OpenClipArt
Shop at Society6 / RedBubble
Using latest stable Inkscape on Ubuntu (current stable release) and Win 7.

User avatar
bartovan
Posts: 191
Joined: Sun Feb 09, 2014 4:14 am
Location: Belgium
Contact:

Re: Can Inkscape Duplicate this Illustrator Image ?

Postby bartovan » Thu Aug 13, 2015 7:04 pm

Seems the SVG didn't make it to my previous message (?), so here it is.
Attachments
ribbon_gradient_02_02.zip
(247.36 KiB) Downloaded 206 times
Portfolio bartovan.com
Tumblr / Instagram / Pinterest / Facebook / Twitter / OpenClipArt
Shop at Society6 / RedBubble
Using latest stable Inkscape on Ubuntu (current stable release) and Win 7.


Return to “Help with using Inkscape”