I took a look at Bruce's code, in particular Code to redefine area and point water symbols . This looks like something I'd like to use but how and where do I define the colour eg. if known colour_water_bg: thfill Path withcolor colour_water_bg; else: thfill Path withcolor white; fi; On 16 Nov 2012, at 11:00, therion-request@speleo.sk wrote:
Send Therion mailing list submissions to therion@speleo.sk
To subscribe or unsubscribe via the World Wide Web, visit http://mailman.speleo.sk/mailman/listinfo/therion or, via email, send a message with subject or body 'help' to therion-request@speleo.sk
You can reach the person managing the list at therion-owner@speleo.sk
When replying, please edit your Subject line so it is more specific than "Re: Contents of Therion digest..."
Today's Topics:
1. Metapost modifications (Dave Clucas) 2. Re: Metapost modifications (Footleg) 3. Re: Metapost modifications (Dave Clucas)
----------------------------------------------------------------------
Message: 1 Date: Fri, 16 Nov 2012 09:28:17 +0000 From: Dave Clucas <dave@daveclucas.com> Subject: [Therion] Metapost modifications To: therion@speleo.sk Message-ID: <669F7863-965F-4631-9398-DBDB3CCFB323@daveclucas.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
In Mulu many of the passages are part filled with sandstone pebbles. I'd like to create a user area and a user symbol based on pebbles where the ellipses are filled with a colour (light brown). Can anybody tell me how to modify the standard definition?
Dave Clucas dave@daveclucas.com http://daveclucas.com http://mycaves.org
------------------------------
Message: 2 Date: Fri, 16 Nov 2012 09:39:17 +0000 From: Footleg <drfootleg@gmail.com> Subject: Re: [Therion] Metapost modifications To: List for Therion users <therion@speleo.sk> Message-ID: <CAJkGg4ny0XGoxkb+5QxjM_N1Q4GjjjhrwwfrohBoxQLhxmmEfQ@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1"
Take a look at Bruce's customised symbol sets on the wiki. I based mine on those. I have not tried adding a completely new symbol to therion yet, but here is how I override the pebbles area fill with one which looks more like I prefer. Include this layout in your pdf export command to see pebbles rendered with this custom style:
layout CustomisedSymbols code metapost
beginpattern(pattern_pebbles); pickup PenC; path qq; for i=0.0u step 0.6u until 5.1u: for j=0.0u step 0.6u until 5.1u: qq := (superellipse((.05u,0),(0,.05u),(-.05u,0),(0,.-.05u),.75)) randomized (u/45) scaled (uniformdeviate(1.2)+.55) rotated uniformdeviate(360) shifted ((i,j) randomized 0.55u); draw qq; endfor; endfor; patternstep(5.1u,5.1u); endpattern;
def a_pebbles (expr p) = T:=identity; thfill p withpattern pattern_pebbles; enddef;
endcode endlayout CustomisedSymbols
On 16 November 2012 09:28, Dave Clucas <dave@daveclucas.com> wrote:
In Mulu many of the passages are part filled with sandstone pebbles. I'd like to create a user area and a user symbol based on pebbles where the ellipses are filled with a colour (light brown). Can anybody tell me how to modify the standard definition?
Dave Clucas dave@daveclucas.com http://daveclucas.com http://mycaves.org
______________________________**_________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/**mailman/listinfo/therion<http://mailman.speleo.sk/mailman/listinfo/therion
Dave The colour_water_bg colour can be defined in a separate layout that is toggled on or off using a simple statement in your main layout file. If you look further down the wiki metapost page in the Code to make full colour symbols block of code you will see layout LayoutColourSymbols . #define colours for redefined water point & area code metapost %these colours affect fills, not the linework !color colour_water_bg; %! forces interpretation as metapost colour_water_bg := (0.86,1,1); %light blue !color colour_sump_bg; %! forces interpretation as metapost colour_sump_bg := (.22,.22,.95); %dark blue . endlayout LayoutColourSymbols and the toggle switch that activates any changes in symbol definitions due to colour symbol activation is; copy LayoutColourSymbols #excludes labels also further down the page. The key points are spread quite far apart however. I was in the passage shown in the wiki water example this morning, we surveyed through the sump, that turned out to be a wade. It pays to get in and make sure whether there is airspace when you find these things! Bruce _____ From: therion-bounces@speleo.sk [mailto:therion-bounces@speleo.sk] On Behalf Of Dave Clucas I took a look at Bruce's code, in particular Code to redefine area and point water symbols . This looks like something I'd like to use but how and where do I define the colour eg. if known colour_water_bg: thfill Path withcolor colour_water_bg; else: thfill Path withcolor white; fi;
participants (2)
-
Bruce -
Dave Clucas