[Therion] Colouring ceiling formations?
Benedikt Hallinger
beni at hallinger.org
Sat Jul 2 16:02:42 CEST 2016
Hello again,
i want to define an optional layout in which some formations are colored
differently, however i have no idea what to do.
Following the examples in the wiki, i tried:
-------
layout colorMap.layout
symbol-colour group water [30 30 95] #this works! :)
symbol-colour line chimney [0.95 0.15 0.15] # no change :(
symbol-colour line ceiling-meander [0.95 0.15 0.15]
endlayout
-------
The water color changes like expected, but the chimney and meander parts
remain black :(
What am i doing wrong here?
Also the same occurs with sand and clay patterns, however here i did my
custom version:
--------
code metapost
% --- LEHM ---
beginpattern(pattern_clay_AUT_HVHO);
% Zeichnet einfach eine Reihe punkte an fixen X/Y Koordinaten
pickup PenC;
draw (0.20u, 0.30u);
draw (0.35u, 0.70u);
draw (0.40u, 0.40u);
draw (0.60u, 0.50u);
draw (0.80u, 0.10u);
endpattern;
def a_clay_AUT (expr Path) =
T:=identity;
% thclean Path;
%thfill Path withpattern pattern_sand_AUT ; % original
thfill Path withpattern pattern_clay_AUT_HVHO ;
enddef;
% --- SAND ---
beginpattern(pattern_sand_AUT_HVHO);
% Zeichnet einfach eine Reihe punkte an fixen X/Y Koordinaten
pickup PenB;
draw (0.20u, 0.20u);
draw (0.40u, 0.60u);
draw (0.80u, 0.40u);
patternbbox(0u,0u, 1.0u,1.0u); % definiert Rechteckgroesse des Symbols
endpattern;
def a_sand_AUT (expr Path) =
T:=identity;
% thclean Path;
%thfill Path withpattern pattern_sand_AUT ; % original
thfill Path withpattern pattern_sand_AUT_HVHO ;
enddef;
endcode
---------
I think i need to tell Therion somehow to draw the line in the color
specified using "symbol-colour".
I know i could duplicate metapost code and add my colors there, however i
want to use the distributions symbol definitions here if possible
(maintianing upwards compatibility).
Thank you very much!
More information about the Therion
mailing list