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
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@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
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@speleo.sk [mailto:therion-bounces@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@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
_______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
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@speleo.sk [mailto:therion-bounces@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@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
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@thomas-holder.de> 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@speleo.sk [mailto:therion-bounces@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@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
Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
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@speleo.sk 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
participants (4)
-
Andrew Atkinson -
Boldt, Markus -
Ladislav Blažek -
Thomas Holder