[Therion] How to avoid that symbol-colour area blocks fills the blocks with chosen color
Torstein Finnesand
torstein.finnesand at gmail.com
Tue Nov 6 23:16:32 CET 2012
Thanks, that solved my problem. Thanks to the contributions from Bruce
and Martin as well.
Torstein
On 05.11.2012 14:20, Stacho Mudrak wrote:
> You just need to remove filling from symbol definition.
>
> In your layout, try to use for example this code:
>
> code metapost
> def a_blocks (expr p) =
> T:=identity;
> pickup PenC;
> path q, qq; q = bbox p;
> picture tmp_pic;
> uu := max(u, (xpart urcorner q - xpart llcorner q)/100, (ypart
> urcorner q - ypart llcorner q)/100);
> tmp_pic := image(
> for i = xpart llcorner q step 2uu until xpart urcorner q:
> for j = ypart llcorner q step 2uu until ypart urcorner q:
> qq := punked
> (((-.5uu,-.5uu)--(.5uu,-.5uu)--(.5uu,.5uu)--(-.5uu,.5uu)--cycle)
> randomized (uu/2))
> rotated uniformdeviate(360)
> shifted ((i,j) randomized 1.6uu);
> if xpart (p intersectiontimes qq) < 0:
> thdraw qq;
> fi;
> endfor;
> endfor;
> );
> clip tmp_pic to p;
> draw tmp_pic;
> enddef;
>
> This is modified a_blocks_SKBB definition with "thclean qq;" statement
> removed.
>
> S.
>
>
> On 4 November 2012 19:37, Bruce <bruce at tomo.co.nz
> <mailto:bruce at tomo.co.nz>> wrote:
>
> > How can I get use "area blocks" to behave like other sediments
> when I
> want colors (and no filling)?
>
> Torstein
>
> You will need to either choose a predefined 'area blocks' that
> does not have
> a solid fill from the standards available - currently AUT and SKBB
> are the
> only unique ones I think - and quite possibly they are both filled.
>
> Or you will need to modify the existing definitions.
>
> I have no time to check just now, but you might like to have a
> look at what
> I did here http://therion.speleo.sk/wiki/doku.php/examples (Sample
> dataset
> at the top of the page) and modify it a bit to see how it behaves with
> colour assignments.
>
> Bruce
>
>
>
> _______________________________________________
> Therion mailing list
> Therion at speleo.sk <mailto:Therion at speleo.sk>
> http://mailman.speleo.sk/mailman/listinfo/therion
>
>
>
>
> _______________________________________________
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20121106/0e23f1f1/attachment.htm>
More information about the Therion
mailing list