AreaFillPatterns: Difference between revisions
m (→Example Pattern files: spelling) |
|||
Line 25: | Line 25: | ||
5 0 moveto | 5 0 moveto | ||
5 10 lineto | 5 10 lineto | ||
stroke | |||
''[insert demonstrative image here]'' | |||
==== Vertical line (70% spacing) ==== | |||
('''|''') | |||
%!PS-Adobe-2.0 EPSF-1.2 | |||
%%BoundingBox: 0 0 10 10 | |||
newpath | |||
5 0 moveto | |||
5 7 lineto | |||
stroke | stroke | ||
Line 37: | Line 49: | ||
0 5 moveto | 0 5 moveto | ||
10 5 lineto | 10 5 lineto | ||
stroke | |||
''[insert demonstrative image here]'' | |||
==== Horizontal line (70% spacing) ==== | |||
('''-''') | |||
%!PS-Adobe-2.0 EPSF-1.2 | |||
%%BoundingBox: 0 0 10 10 | |||
newpath | |||
0 5 moveto | |||
7 5 lineto | |||
stroke | stroke | ||
Line 52: | Line 76: | ||
0 5 moveto | 0 5 moveto | ||
10 5 lineto | 10 5 lineto | ||
stroke | |||
''[insert demonstrative image here]'' | |||
==== Horizontal/vertical cross-hatch (70% spacing) ==== | |||
('''+''') | |||
%!PS-Adobe-2.0 EPSF-1.2 | |||
%%BoundingBox: 0 0 10 10 | |||
newpath | |||
5 0 moveto | |||
5 7 lineto | |||
stroke | |||
0 5 moveto | |||
7 5 lineto | |||
stroke | stroke | ||
Line 64: | Line 103: | ||
0 0 moveto | 0 0 moveto | ||
10 10 lineto | 10 10 lineto | ||
stroke | |||
''[insert demonstrative image here]'' | |||
==== Diagonal line (bottom left to upper right) (70% spacing) ==== | |||
('''/''') | |||
%!PS-Adobe-2.0 EPSF-1.2 | |||
%%BoundingBox: 0 0 10 10 | |||
newpath | |||
0 0 moveto | |||
7 7 lineto | |||
stroke | stroke | ||
Line 76: | Line 126: | ||
0 10 moveto | 0 10 moveto | ||
10 0 lineto | 10 0 lineto | ||
stroke | |||
''[insert demonstrative image here]'' | |||
==== Diagonal line (upper left to bottom right) (70% spacing) ==== | |||
('''\''') | |||
%!PS-Adobe-2.0 EPSF-1.2 | |||
%%BoundingBox: 0 0 10 10 | |||
newpath | |||
0 7 moveto | |||
7 0 lineto | |||
stroke | stroke | ||
Line 91: | Line 153: | ||
0 0 moveto | 0 0 moveto | ||
10 10 lineto | 10 10 lineto | ||
stroke | |||
''[insert demonstrative image here]'' | |||
==== Diagonal cross-hatch (70% spacing) ==== | |||
('''X''') | |||
%!PS-Adobe-2.0 EPSF-1.2 | |||
%%BoundingBox: 0 0 10 10 | |||
newpath | |||
0 7 moveto | |||
7 0 lineto | |||
stroke | |||
0 0 moveto | |||
7 7 lineto | |||
stroke | stroke | ||
Revision as of 05:21, 22 June 2006
ps.map's vector area filling command will let you set a fill pattern (hatching). You can create custom patterns. User contributed patterns can be found on this page.
Alternative: QGIS will let you load a GRASS map (with the GDAL GRASS-plugin installed) and change the area fill pattern on-screen.
Contributions
Please include a small example graphic. Upload instructions.
Also please include your name and some sort of license information.
e.g. "© 2006 Sara Grassuser, released into the public domain without restriction." This way others may freely improve and further distribute your work (e.g. it can be distributed with the next official GRASS release).
Authoring instructions
Use ps.map's vareas instruction pat command - full path to pattern file. Pattern file contains header and simple PS commands. It is similar to EPS but more limited, that means that each pattern file is EPS file but EPS files are not usually usefull as pattern files because contain restricted commands. Color and width of patterns is set by acolor and pwidth until it is overwritten in pattern file. Currently the only way to create pattern file is text editor.
Example Pattern files
Vertical line
(|)
%!PS-Adobe-2.0 EPSF-1.2 %%BoundingBox: 0 0 10 10 newpath 5 0 moveto 5 10 lineto stroke
[insert demonstrative image here]
Vertical line (70% spacing)
(|)
%!PS-Adobe-2.0 EPSF-1.2 %%BoundingBox: 0 0 10 10 newpath 5 0 moveto 5 7 lineto stroke
[insert demonstrative image here]
Horizontal line
(-)
%!PS-Adobe-2.0 EPSF-1.2 %%BoundingBox: 0 0 10 10 newpath 0 5 moveto 10 5 lineto stroke
[insert demonstrative image here]
Horizontal line (70% spacing)
(-)
%!PS-Adobe-2.0 EPSF-1.2 %%BoundingBox: 0 0 10 10 newpath 0 5 moveto 7 5 lineto stroke
[insert demonstrative image here]
Horizontal/vertical cross-hatch
(+)
%!PS-Adobe-2.0 EPSF-1.2 %%BoundingBox: 0 0 10 10 newpath 5 0 moveto 5 10 lineto stroke 0 5 moveto 10 5 lineto stroke
[insert demonstrative image here]
Horizontal/vertical cross-hatch (70% spacing)
(+)
%!PS-Adobe-2.0 EPSF-1.2 %%BoundingBox: 0 0 10 10 newpath 5 0 moveto 5 7 lineto stroke 0 5 moveto 7 5 lineto stroke
[insert demonstrative image here]
Diagonal line (bottom left to upper right)
(/)
%!PS-Adobe-2.0 EPSF-1.2 %%BoundingBox: 0 0 10 10 newpath 0 0 moveto 10 10 lineto stroke
[insert demonstrative image here]
Diagonal line (bottom left to upper right) (70% spacing)
(/)
%!PS-Adobe-2.0 EPSF-1.2 %%BoundingBox: 0 0 10 10 newpath 0 0 moveto 7 7 lineto stroke
[insert demonstrative image here]
Diagonal line (upper left to bottom right)
(\)
%!PS-Adobe-2.0 EPSF-1.2 %%BoundingBox: 0 0 10 10 newpath 0 10 moveto 10 0 lineto stroke
[insert demonstrative image here]
Diagonal line (upper left to bottom right) (70% spacing)
(\)
%!PS-Adobe-2.0 EPSF-1.2 %%BoundingBox: 0 0 10 10 newpath 0 7 moveto 7 0 lineto stroke
[insert demonstrative image here]
Diagonal cross-hatch
(X)
%!PS-Adobe-2.0 EPSF-1.2 %%BoundingBox: 0 0 10 10 newpath 0 10 moveto 10 0 lineto stroke 0 0 moveto 10 10 lineto stroke
[insert demonstrative image here]
Diagonal cross-hatch (70% spacing)
(X)
%!PS-Adobe-2.0 EPSF-1.2 %%BoundingBox: 0 0 10 10 newpath 0 7 moveto 7 0 lineto stroke 0 0 moveto 7 7 lineto stroke
[insert demonstrative image here]
User contributions
-