Color water

View: New views
6 Messages — Rating Filter:   Alert me  

Color water

by Boldt, Markus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Color water

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


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

Re: Color water

by Ladislav Blažek-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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

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

Re: Color water

by Andrew Atkinson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

this is the code I have that works (I believe it came from Wookey I
cannot see any difference (except the choice of numbers for the colour).
I believe that it has to be in a layout endlayout section then that
layout used for it to work, I cannot tell if you have done that

export map -proj plan -layout common -o Charterhouse.pdf

layout common
....
# define water to be light blue
   def a_water (expr p) =
     T:=identity;
#nice light blue - but nearly same as level colour - change back when we
have control of that
#    thfill p withcolor (0.48, 0.84, 1.0);
     thfill p withcolor (0.0, 0.0, 1.0);

     enddef;

.....
endlayout

Boldt, Markus 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
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Therion mailing list
> Therion@...
> http://mailman.speleo.sk/mailman/listinfo/therion
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.409 / Virus Database: 270.13.113/2400 - Release Date: 09/28/09 05:51:00
>

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

Re: Color water

by Boldt, Markus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@... [mailto:therion-bounces@...] 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@...> 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

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


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

Re: Color water

by Thomas Holder-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@... [mailto:therion-bounces@...] 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@...> 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
_______________________________________________
Therion mailing list
Therion@...
http://mailman.speleo.sk/mailman/listinfo/therion

Re: Color water

by Ladislav Blažek-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The main difference between this two version is that I am not redefining
"system" symbol. Instead I am creating symbol in MY symbol set. In my
opinion it is the "cleaner" way. L.

On Tue, 29 Sep 2009 08:46:38 +0200, Thomas Holder <thomas@...>
wrote:

> 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@... [mailto:therion-bounces@...] 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@...> 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
> _______________________________________________
> Therion mailing list
> Therion@...
> http://mailman.speleo.sk/mailman/listinfo/therion

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