[Therion] Color water

Thomas Holder thomas at thomas-holder.de
Tue Sep 29 08:46:38 CEST 2009


Hi,

the code from wiki works for me (without initsymbol/symbol-assign, just 
def a_water).

Thomas

Boldt, Markus wrote, On 09/29/09 08:07:
> Many thanks to Ladislav and Andrew! 
> I have used now the version from Ladislav. And it works. It should be
> fine, if someone writes it in the wiki instead of the version, which is
> written.
> 73
> Markus 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: therion-bounces at speleo.sk [mailto:therion-bounces at speleo.sk] Im Auftrag von Ladislav Blažek
> Gesendet: Montag, 28. September 2009 18:41
> An: List for Therion users
> Betreff: Re: [Therion] Color water
> 
> Hi Markus,
> I think this is the correct way how to redefine symbol:
> 
> layout my_layout
> ...
>   code metapost
>     def a_water_MY (expr p) =
>       T:=identity;
>       thfill p withcolor (0,0,1);
>     enddef;
>     initsymbol("a_water_MY");
>   endcode
> 
>   symbol-assign area water MY
> ...
> endlayout
> 
> 
> On Mon, 28 Sep 2009 17:16:57 +0200, "Boldt, Markus"
> <markus.boldt at ratiopharm.de> wrote:
>> Hi,
>> I have tried to color "my" water blue. So I have copied the code from 
>> the wiki in my layout.
>> code metapost
>> def a_water (expr p) =
>> T:=identity;
>> thfill p withcolor (0.1, 0.2, 0.8);
>> enddef;
>> endcode
>>
>> But it doesn`t work? 
>> What could be the reason? 
>>
>> 73
>> Markus



More information about the Therion mailing list