therion-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Therion] How do I change the water symbol


From: Stacho Mudrak
Subject: Re: [Therion] How do I change the water symbol
Date: Thu, 21 Dec 2006 13:03:13 +0100
User-agent: Internet Messaging Program (IMP) H3 (4.1) / FreeBSD-4.10

Quoting Olly Betts <address@hidden>:
> I'm guessing the problem is that the distance between the diagonal lines
> scales with everything else so they're just too close together at a
> scale which is significantly smaller than those the therion developers
> tend to use themselves.

Exactly. We have already in TODO list to extract some generic  
variables for fill densities. Currently, you can do it by redefinition  
of symbols in layout. Just add to your layout:

code metapost

% pattern for water, .18u is density of lines.
beginpattern(pattern_water_MY);
     draw origin--10up withpen pensquare scaled (0.02u);
     patternxstep(.18u);
     patterntransform(identity rotated 45);
endpattern;

% pattern for sump, 0.25u is density in this case.
beginpattern(pattern_sump_MY);
     draw origin--(0,.25u) withpen pensquare scaled (0.02u);
     draw origin--(.25u,0) withpen pensquare scaled (0.02u);
     patterntransform(identity rotated 45);
endpattern;

def a_water (expr Path) =
   T:=identity;
   thclean Path;
   thfill Path withpattern pattern_water_MY;
enddef;

def a_sump (expr Path) =
   T:=identity;
   thclean Path;
   thfill Path withpattern pattern_sump_MY;
enddef;

endcode

... and modify 0.18u in water pattern (and/or 0.25u in sump pattern)  
to number you need.

In therion, area symbols are defined two ways:
1. Using patterns - no randomness, very small PDF file size. You need  
to redefine pattern (begin|endpattern) and symbol macro (a_water).
2. Using drawing/clipping into Path - random look, large PDF size.  
Here you need to redefine only symbol (a_water) macro.
Water is the case of pattern fills. Blocks and other are random.

For other area symbols, see mpost/thArea.mp file for metapost source codes.

HTH, S.


_______________________________________________
Therion mailing list
address@hidden
http://www.speleo.sk/mailman/listinfo/therion




reply via email to

[Prev in Thread] Current Thread [Next in Thread]