how to make a nice hatching

Post questions on how to use or achieve an effect in Inkscape.
hauntergeist

how to make a nice hatching

Postby hauntergeist » Fri Nov 28, 2008 7:17 pm

Good morning.

I am trying to make hatchings, for example a square, whose area is filled with a black-white-hatching. Is there an elegant way to accomplish this? I tried to fill the square with the filling "pattern: stripes", but the stripes are ugly and thick and I dont know how to rotate the filling.

Yours sincerely,
hauntergeist.

Simarilius
Posts: 626
Joined: Wed Jun 06, 2007 2:37 am

Re: how to make a nice hatching

Postby Simarilius » Fri Nov 28, 2008 10:26 pm

When you select a shape with a pattern applied a set of handles are shown that allow you to manipulate the pattern (their normally at 0,0 so you may need to zoom out to find them) these will let you scale, rotate and translate the pattern thats applied.

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

Re: how to make a nice hatching

Postby brynn » Sat Nov 29, 2008 4:37 am

Or you could make your own pattern ;)
Also, I think Live Path Effects could possibly be used.

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

Re: how to make a nice hatching

Postby prkos » Sat Nov 29, 2008 6:10 am

Just to extend what Simarilius said; the pattern controls are shown when you use Node tool :tool_node: on a pattern filled object. They appear at the top left corner of the page, just click on the X with the Node tool and drag it closer to your object so it's easier to use.

If you really need hatching check this out
http://www.inkscape.org/screenshots/gal ... aving1.png

http://www.inkscape.org/screenshots/gal ... aving2.png
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

Guest

Re: how to make a nice hatching

Postby Guest » Sat Nov 29, 2008 9:41 pm

Wow, thank you very much! I've never realized, that there are handles in the top left corner. I always concentrated on the object and I was puzzled when I didnt found the right handles there :lol:

@prkos: Nice pictures. The trick with the guiding paths is great. But I don't seem to be able to thin or thicken the lines as the whole Inkscape-window follows my mouse pointer, when I use Alt+Drag. :?

@brynn: yea, I also tried to make my own patterns. For example, I created a square and a line. Then I copied the line several times and equalized the distances between them. And afterwards I tried to get this line-hatching into the right form per means of "union" or "overlapping" (or sth. similar) of paths (I converted the square and the lines into paths before), but none of the effects produced desirable outcomes.

Sorry for the late answer.
hauntergeist

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

Re: how to make a nice hatching

Postby prkos » Sun Nov 30, 2008 1:40 am

What OS are you on? Alt key may be used by your windows manager to move windows, so this is stronger than Inkscape.

One way to solve this is to change your windows manager preference from Alt to Super (Super key is the key with Windows sign). This way when you want to move a window use Super, and in Inkscape you can use Alt normally. On my system it's on System > Preferences > Look and feel > Windows > Movement key.

The other way is to change your Inkscape preference (from Alt to Super for example) but this way you'll always have to remember to hit the Super key instead of Alt.
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

hauntergeist

Re: how to make a nice hatching

Postby hauntergeist » Sun Nov 30, 2008 2:41 am

I am on Linux and I use Xfce4. So my keyboard is configured via xorg.conf. I found out, that I can change the Inkscape settings by changing the default.xml. But I can't find an entry for the thinning or thickening of paths ....

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

Re: how to make a nice hatching

Postby prkos » Sun Nov 30, 2008 5:56 am

I found this from xfce forum:

xmodmap essentially tells the X server what it should see when you press a certain key. For example, you can map your 'a' key to 'b' so that 'b' will appear when you press a. That's obviously a silly case, but xmodmap is useful for setting up keyboard multimedia keys and other unique keys. I have my print-screen key set up to take a screenshot and save it as a file, for example.

I think there are also some GUIs to xmodmap but I've never tried them.

so you might try that xmodmap

As far as Inkscape goes you'll probably want to completely map Alt as something else because there are a lot of useful features that use Alt key. For example to select an object that is below another object. There's a FAQ entry about it: http://wiki.inkscape.org/wiki/index.php ... n_Linux.3F.

I guess not all shortcuts are there in default.xml, maybe it's possible to add your own?
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

hauntergeist

Re: how to make a nice hatching

Postby hauntergeist » Mon Dec 01, 2008 3:23 am

Cool, thanks. The FAQ entry was really helpful. Thanks a lot prkos. :D

Greetings,
hauntergeist


Return to “Help with using Inkscape”