Making curves using a group of strokes?

Post questions on how to use or achieve an effect in Inkscape.
Pureon
Posts: 47
Joined: Fri Aug 21, 2009 4:44 am

Making curves using a group of strokes?

Postby Pureon » Thu Nov 12, 2009 12:27 am

Hi all,

The title may be a little confusing - I have no idea how to achieve this...

I have 6 strokes forming this texture:
Image
Four 1pixel wide white lines with a black and grey stroke underneath - Each stroke going top to bottom.

I'd like to make curves using this basic setup, so that it works a bit like a 3 lane road with turns and arcs of different shapes - the white lines being the road markings.

Appreciate any ideas people may have, I don't want to redraw every stroke to fit a curve, but I might have to :?

User avatar
Kjohrf
Posts: 170
Joined: Tue Oct 27, 2009 11:42 am
Location: US
Contact:

Re: Making curves using a group of strokes?

Postby Kjohrf » Thu Nov 12, 2009 4:13 am

I don't think Inkscape supports this directly. You'd need path-based gradients or something.

The things that come to mind that you might investigate are:

* Pattern along Path. You would want a pattern that is like a horizontal sliver of what you showed.

* The Bend effect in the Paths Effects Editor. You'd start with a long straight road and bend it.

Hope one of those helps.

Pureon
Posts: 47
Joined: Fri Aug 21, 2009 4:44 am

Re: Making curves using a group of strokes?

Postby Pureon » Thu Nov 12, 2009 4:36 am

Thanks for your thoughts Kjohrf.

I'll look a bit further into 'Pattern along Paths'. From what I read this morning it only supports one object, I have 6. But the tutorial I read that from may have been based on an old version of inkscape.

If anyone else has any ideas please also let me know!

llogg
Posts: 443
Joined: Tue Mar 11, 2008 7:30 am

Re: Making curves using a group of strokes?

Postby llogg » Thu Nov 12, 2009 10:05 am

Try grouping our strokes then object>object to pattern. Draw your curve then under fill and stroke apply pattern as stroke. Might work.

Pureon
Posts: 47
Joined: Fri Aug 21, 2009 4:44 am

Re: Making curves using a group of strokes?

Postby Pureon » Thu Nov 12, 2009 10:33 pm

Thanks llogg, I'm about to give that a try now.

Quick question for everyone while I'm here, how do I stop these dotted lines appearing at the ends of my stroke:
Image

I know it's to show the thickness of the stroke, but I've got my strokes ending at the nodes.

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

Re: Making curves using a group of strokes?

Postby ~suv » Fri Nov 13, 2009 1:32 am

Pureon wrote:how do I stop these dotted lines appearing at the ends of my stroke

Choose one:
  1. change the cap style of the stroke:
    Fill & Stroke > Stroke style > Cap: [x] Square cap
  2. change the selection bounding box to 'Geometric':
    Inkscape Preferences > Tools > Bounding box to use: [x] Geometric bounding box
  3. … other ideas?
(question: why do you want them to disappear? the current inkscape implementation of the visual bounding box concept includes half of the stroke width at the end nodes of straight lines segments, but that's mainly relevant for bbox snapping or filters respectively exporting a (filtered) selection to bitmap.)

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

Re: Making curves using a group of strokes?

Postby ~suv » Fri Nov 13, 2009 1:50 am

… I know it can cause trouble for tricky snapping and aligning tasks. ;-)

Pureon
Posts: 47
Joined: Fri Aug 21, 2009 4:44 am

Re: Making curves using a group of strokes?

Postby Pureon » Fri Nov 13, 2009 2:58 am

~suv wrote:Choose one:
  1. change the cap style of the stroke:
    Fill & Stroke > Stroke style > Cap: [x] Square cap
  2. change the selection bounding box to 'Geometric':
    Inkscape Preferences > Tools > Bounding box to use: [x] Geometric bounding box
  3. … other ideas?
(question: why do you want them to disappear? the current inkscape implementation of the visual bounding box concept includes half of the stroke width at the end nodes of straight lines segments, but that's mainly relevant for bbox snapping or filters respectively exporting a (filtered) selection to bitmap.)


I don't mind the dots, they are useful to have ;) It's that they don't end where my stroke ends (I'm using Butt cap for measurement and alignment reasons). If the stroke is using Butt cap the dots should end where the stroke visually ends, not where the stroke would end 'if' you were using Square cap.

I turned the bounding box to Geometric, and it is far more practical for this new project I'm working on, so I'll keep that. If there was a thumbs-up smilie I would use it now!


Return to “Help with using Inkscape”