gradient custom patterns : how to ?

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

gradient custom patterns : how to ?

Postby v1nce_2010 » Sat Jun 19, 2010 9:41 pm

Hi,

I want to make custom patterns (carbon fiber pattern look alike) with gradients.
Is it possible ?
It looks like no. I added my pattern + gradient to /usr/share/inkscape/patterns/patterns.svg but it doesn't appear.

Any idea/pointers ?

vwanweb
Posts: 169
Joined: Sun Jun 06, 2010 1:48 pm

Re: gradient custom patterns : how to ?

Postby vwanweb » Sun Jun 20, 2010 9:49 am

I had the same problem with inkscape's pattern directory and saving svg based patterns into it..

So until this gets fixed:
a. I create some of my base patterns in inkscape and then export .png them to another awesome program purpose built for patterns (freeware) http://www.imagelys.com

hope this helped..

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

Re: gradient custom patterns : how to ?

Postby brynn » Mon Jun 21, 2010 6:45 am

You might look into the Filters Editor. There may be a way to make what you want as a filter rather than pattern (both are bitmaps). Just a quick thought ;)

v1nce_2010

Re: gradient custom patterns : how to ?

Postby v1nce_2010 » Mon Jun 21, 2010 8:35 am

Hi,

No, this can't be done with filters. You can make interesting patterns like wood, marble,metal, bubbles but you can't do carbon fiber pattern or any "regular" ones ("greek" patterns, escher look alike...)

I'd rather use svg rather than bitmap.

Thanks anyway.

User avatar
tomh
Posts: 218
Joined: Sat Feb 14, 2009 10:14 pm

Re: gradient custom patterns : how to ?

Postby tomh » Mon Jun 21, 2010 11:17 pm

Patterns:
Create a pattern, select all the objects that you want to make up the pattern and go
Object -> Pattern -> Object to Pattern.
Patten should then be avalable from fill and stroke dialogue in that file.
The objects makking up the patter n can be anything you like and can have gradient fills if desired.

Adding default Gradients:
Custum gradient definitions have to be added to the default template (the svg file that is loaded when you go file->new), found by going \Inkscape\share\templates (windows).

Adding defult Patterns:
To add a new default pattern (so that the same pattern is avalibe in all your files)

You have to edit the patterns.svg file (\Inkscape\share\patterns\patterns.svg on windows)
1) create the pattern as above,
2) open the svg file in an editer, and copy the patten def from one file to the patterns.svg file.
3) You then have to edit the defenition to add inkscape:stockid="name of pattern" and inkscape:collect="always" so that it will show up in the pattern dropdown meue for all futer files you create

User avatar
RobA
Posts: 335
Joined: Fri Aug 10, 2007 1:22 am

Re: gradient custom patterns : how to ?

Postby RobA » Mon Jun 21, 2010 11:26 pm

v1nce_2010 wrote:Hi,

I want to make custom patterns (carbon fiber pattern look alike) with gradients.
Is it possible ?
It looks like no. I added my pattern + gradient to /usr/share/inkscape/patterns/patterns.svg but it doesn't appear.

Any idea/pointers ?


Yes you can.

After creating a pattern you can follow these instruction: http://www.silent9.com/blog/archives/14 ... scape.html to add them to the inkscape default pattern "space".

Alternately, just keep your pattern in a patterns.svg file that is otherwise empty (no drawing objects) and import it into any other drawing, then you can access those patterns.

-Rob A>


Return to “Help with using Inkscape”