making a fancy background

Post questions on how to use or achieve an effect in Inkscape.
epictreeclimber
Posts: 9
Joined: Wed Jun 23, 2010 11:25 am

making a fancy background

Postby epictreeclimber » Sat Jan 08, 2011 6:52 am

Hello everybody,

I am having a small problem and I hope someone knows what to do.
I am trying to make a little background image to be repeated.
I am using a very simple background color square shape and some lines on it. so 2 objects.
the problem is how can i merge both so the edges of the lines get cut off on the edges of the squares.
I tried Path>intersection but nothing happends. anyone an idea?
added an ugly example of it,

any help is welcome, including when to use path or what object to make path lol i am sucha novice noob :lol:

-edit: I also noticed that ones i try some path trick like join or anything and ctrl+z it, it seems the objects are harmed or something, and i can't perform the same action again this is really weird for me and makes no sense unless it's a bug. using 0.47 btw
Attachments
hmmm.png
hmmm.png (1.37 KiB) Viewed 1274 times

Uktrunie
Posts: 154
Joined: Sun Jul 18, 2010 4:48 am

Re: making a fancy background

Postby Uktrunie » Sat Jan 08, 2011 1:04 pm

I would convert the lines to paths going to Path > Stroke To Path. This way those lines become an object with the shape of the lines. Then you can do an intersection on them. Of course, you first need to merge all the lines together doing a Path > Union.

Hope it helps. Bye.

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

Re: making a fancy background

Postby llogg » Sat Jan 08, 2011 1:49 pm

1. Select the lines and do Path>Combine.
2. With line path selected do Path>stroke to path
3. Select rectangle and do Path>object to path
4. Duplicate rectangle path
5. Select rectangle and lines and do Path>Intersection
6. Move remaining rectangle to bottom

Alternate method:
1. Select lines and do Path>Combine
2. With line path selected do Path>stroke to path
3. Select rectangle and do Path>object to path
4. Duplicate rectangle path twice.
5. Select rectangle path and line path and do Path>Exclusion
6. Select another rectangle path and the exclusion path and do Path>Intersection
7. Move the last rectangle path to the bottom. Note that in this method the bottom rectangle determines the color of the lines, which have been cut out of the other rectangle path.

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

Re: making a fancy background

Postby brynn » Mon Jan 10, 2011 11:40 am

I tried Path>intersection but nothing happends. anyone an idea?

That would work if the square was a path and not a shape (Path menu > Object to Path).

Also, note that you can look at the info area (bottom of window in the middle), for help at almost any moment. For example, if the square is a shape and not a path, the info area will say something like "one object is not a path".


Return to “Help with using Inkscape”