[Therion] Help with a flowstone symbol for ASF.

Mike Lake mikel at speleonics.com.au
Sun Feb 25 02:31:22 CET 2007


Hi all

I am trying to do a flowstone symbol for the ASF.
In thconfig I have this:

layout mypage
  scale 1 200
  base-scale 1 100
  symbol-set ASF
  
  code metapost

    beginpattern(pattern_flowstone_ASF);
      pickup PenC;
      draw (-.5u,.5u){dir -70} .. {dir 70}(.5u,.5u);
      patternxstep(1.0u);
      patternystep(0.5u);
    endpattern;
    
    def a_flowstone_ASF (expr Path) =
    T:=identity;
    thclean Path;
    thfill Path withpattern
    pattern_flowstone_ASF; 
    enddef;
  
  endcode
  symbol-assign area flowstone ASF

endlayout

Im getting this errori when I run therion:
  therion: error -- thconfig [76] -- thconfig [76] -- unknown symbol
     specification -- area flowstone


The pattern Im wanting is based on this 
  draw (-.5u,.5u){dir -70} .. {dir 70}(.5u,.5u);
which looks like this \__/

and what I would like to have is this:

\__/\__/\__/\__/\__/\__/\__/\__/
  \__/\__/\__/\__/\__/\__/\__/\__/
\__/\__/\__/\__/\__/\__/\__/\__/
  \__/\__/\__/\__/\__/\__/\__/\__/

I see in the thArea.mp that some patterns are done using the mpattern
package and use a beginpattern (e.g. pattern_water_UIS) while others seem to just use a for loop 
(e.g. a_sand_UIS) and dont use the mpattern package.
Should one use the mpattern macro over more complex mpost code if its
suitable?


Mike

-- 
Mike Lake
Caver, Linux enthusiast and interested in anything technical.



More information about the Therion mailing list