[Therion] Area "filled"

Bruce Mutton bruce at tomo.co.nz
Thu Sep 14 10:11:12 CEST 2017


To expand on Martin’s example, there is perhaps a little more to it.

Refer to pg 106 of Therion Book

 

Such an area could be defined in your scrap drawing by a line border subtype invisible. 

The area will be called u:filled

 

And definition of colour is identical as definition of blue water in wiki of Therion.

 

So, for an area u:filled, include in your layout…

 

code metapost

    def a_u_filled (expr p) =

      T:=identity;

      thfill p withcolor (0.6, 0.8, 1);

    enddef;                              %define the area symbol called filled

 

    initsymbol("a_u_filled")  %initialise the area symbol called filled

 

   def a_u_filled_legend =

                a_u_filled<oops, I cannot find the code for this right now, but it should be simple – fills box with colour>

   enddef;                                 %to include the u:filled symbol in the legend

 

endcode

 

To select a colour definition you could refer to 

https://therion.speleo.sk/wiki/tips#rgb_to_therion_colour_mapping_calculator

 

And to define the text you want to appear in the legend, include this in your thconfig…

 

text en “area u:filled”  “filled passage”

text de “area u:filled”  “german words for filled passage”

 

Bruce

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20170914/85be0a98/attachment.htm>


More information about the Therion mailing list