<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:CMTT12;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:CMMI10;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:CMR12;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.fontstyle01
        {mso-style-name:fontstyle01;
        font-family:"CMTT12",serif;
        color:#2E3092;
        font-weight:normal;
        font-style:normal;}
span.fontstyle21
        {mso-style-name:fontstyle21;
        font-family:"CMMI10",serif;
        color:black;
        font-weight:normal;
        font-style:italic;}
span.fontstyle31
        {mso-style-name:fontstyle31;
        font-family:"CMR12",serif;
        color:black;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Anton<o:p></o:p></p><p class=MsoNormal>It seems my current version of that file/layout doesn’t use transparent colours – I haven’t updated that wiki post for some years.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I vaguely recall some discussion about transparent colours when differing colour models were introduced, but such things are above my knowledge level.<o:p></o:p></p><p class=MsoNormal>A clue on top of page 57 of the Therion book.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span class=fontstyle01><span style='font-size:12.0pt'>smooth-shading <off/quick> </span></span><span class=fontstyle21><span style='font-size:12.0pt'>. </span></span><span class=fontstyle31><span style='font-size:12.0pt'>set the mode of smooth scrap backgroud shading.</span></span><span style='font-size:12.0pt;font-family:"CMR12",serif;color:black'><br><span class=fontstyle31>By default, altidute and depth colour is interpolated across the scrap the </span></span><span class=fontstyle01><span style='font-size:12.0pt'>quick </span></span><span class=fontstyle31><span style='font-size:12.0pt'>way.</span></span><span style='font-size:12.0pt;font-family:"CMR12",serif;color:black'><br><span class=fontstyle31><span style='background:yellow;mso-highlight:yellow'>Some issues are present if transparent symbol colours are used</span>. More precise modes</span><br><span class=fontstyle31>should be added in the future. If </span></span><span class=fontstyle01><span style='font-size:12.0pt'>off</span></span><span class=fontstyle31><span style='font-size:12.0pt'>, scrap is filled with single colour.</span></span><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>On the other hand, your code is missing a ; <o:p></o:p></p><p class=MsoNormal>What happens if you add one like this?<o:p></o:p></p><p class=MsoNormal>    def_transparent_rgb (tr_color_sump_bg, .44, .81, .92)<b><span style='font-size:24.0pt;background:yellow;mso-highlight:yellow'>;</span></b> %transparent version<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Or you could just delete the entire line, assuming you have not used tr_color_sump anywhere.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hope that helps.<o:p></o:p></p><p class=MsoNormal>Bruce<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US>From:</span></b><span lang=EN-US> Therion <therion-bounces@speleo.sk> <b>On Behalf Of </b>A.M. van Rosmalen<br><b>Sent:</b> Saturday, 21 August 2021 19:53<br><b>To:</b> List for Therion users <therion@speleo.sk><br><b>Subject:</b> [Therion] Therion 6.0.1 colour processing problem<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hi there,<o:p></o:p></p></div><div><div><p class=MsoNormal><br>Since I upgraded to the last version of Therion (6.01) on Windows my<br>maps refuse to compile even though they used to compile just fine<br>before and still compile under the previous version (on a Linux<br>machine)<br><br>Specifically this piece of code in LayoutStandards.thc drafted by<br>Bruce Mutton found here:<br><a href="https://therion.speleo.sk/wiki/_media/templates:layoutstandards.txt" target="_blank">https://therion.speleo.sk/wiki/_media/templates:layoutstandards.txt</a><br><br>  code metapost<br>  %these colours affect fills, not the linework<br>    !color colour_water_bg; %! forces interpretation as metapost<br>    colour_water_bg := (0.82,.93,.95);      %light blue<br>    !color colour_sump_bg;  %! forces interpretation as metapost<br>    def_transparent_rgb (tr_color_sump_bg, .44, .81, .92) %transparent version<br>    colour_sump_bg := (.44,.81,.92);    %dark blue<br><br>    %these colours affect the linework<br>    !color colour_rope;  %! forces interpretation as metapost<br>    colour_rope :=  (0.35,0.75,1.0);    %blue<br>    endcode<br><br><br><br>Gives the following error message:<br><br><br><br>>> def_transparent_rgb<br>! Isolated expression.<br><to be read again><br>                   (<br>l.6979 def_transparent_rgb (<br>                            tr_color_sump_bg, .44, .81, .92) %transparent ve...<br>I couldn't find an `=' or `:=' after the<br>expression that is shown above this error message,<br>so I guess I'll just ignore it and carry on.<br><br>! Extra tokens will be flushed.<br><to be read again><br>                   (<br>l.6979 def_transparent_rgb (<br>                            tr_color_sump_bg, .44, .81, .92) %transparent ve...<br>I've just read as much of that statement as I could fathom,<br>so a semicolon should have been next. It's very puzzling...<br>but I'll try to get myself back together, by ignoring<br>everything up to the next `;'. Please insert a semicolon<br>now in front of anything that you don't want me to delete.<br>(See Chapter 27 of The METAFONTbook for an example.)<br><br><br><br>I tried adding some := and =, but this just leads to the following<br>error message:<br><br><br>>> def_transparent_rgb<br>>> (tr_color_sump_bg,0.44,0.81,0.92)<br>! Equation cannot be performed (numeric=cmykcolor).<br><to be read again><br>                   colour_sump_bg<br>l.6980 colour_sump_bg<br>                      := (.44,.81,.92);    %dark blue<br>I'm sorry, but I don't know how to make such things equal.<br>(See the two expressions just above the error message.)<br><br>! Extra tokens will be flushed.<br><to be read again><br>                   colour_sump_bg<br>l.6980 colour_sump_bg<br>                      := (.44,.81,.92);    %dark blue<br>I've just read as much of that statement as I could fathom,<br>so a semicolon should have been next. It's very puzzling...<br>but I'll try to get myself back together, by ignoring<br>everything up to the next `;'. Please insert a semicolon<br>now in front of anything that you don't want me to delete.<br>(See Chapter 27 of The METAFONTbook for an example.)<br><br>Any ideas how to fix this?<br><br>Cheers,<br><br>Anton<o:p></o:p></p></div></div></div></body></html>