<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="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</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-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>Taking inspiration from Martins recent post on
transparent colours I thought I might make my custom point water and area water
transparent, or at least behave better with ‘transparency on’ than
the standard non-transparent colours.  Alas the code compiles without fuss,
but the result is identical to the result when using standard (opaque) colour
definitions.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>In my layout I have, in the order called…<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>Define the area and point water <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>def p_water (expr
pos,theta,sc,al)=<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>   
U:=(.425u,.3u);<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>   
T:=identity aligned al rotated theta scaled sc shifted pos;<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>    pickup
PenD;<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>   
p:=fullcircle xscaled (1.2u) yscaled (0.8u) randomized (0.1u) rotated
uniformdeviate (-45);<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>    %if
known colour_water_bg: thfill p withcolor colour_water_bg; else: thfill p
withcolor white; fi; <o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>    <span
style='background:yellow'>if known tr_colour_water_bg: thfill p
withtransparentcolor  tr_colour_water_bg; else: thfill p
withtransparentcolor tr_white; fi;</span>        <o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>    thfill
p withpattern pattern_water; %%% withcolor black;  %but with failed
attempt at black hatch<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>    thdraw
p;   %outline<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>enddef; <o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>def a_water (expr Path) =<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>  T:=identity;<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>  % thclean Path;<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>  pickup PenD;<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>  % if known
colour_water_bg: thfill Path withcolor colour_water_bg; else: thfill Path
withcolor white; fi; <o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>   <span
style='background:yellow'>if known tr_colour_water_bg: thfill Path
withtransparentcolor  tr_colour_water_bg; else: thfill Path
withtransparentcolor tr_white; fi;</span>   <o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>  thfill Path
withpattern pattern_water;  <o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>  %%thdraw
Path;  %outline, not needed as area drawn is defined by line border anyway<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'>enddef;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>Optionally define the colours (the tr_white not
needed as it is defined in the default distribution)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>                        !color
colour_water_bg; %! forces interpretation as metapost<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>                        colour_water_bg
:= (0.86,1,1);      %light blue<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>                        def_transparent_rgb(tr_colour_water_bg,
0.86, 1, 1);<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>and then<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>            
transparency on     <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>             opacity
50         <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>Everything in these examples is in a single scrap.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>I have checked that my code is being used by changing
the colours, for example from tr_white to tr_black etc and these changes are
reflected properly, it’s just that they are not transparent.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>In Adobe Reader it looks like this (below) (the water
on the right is definitely not transparent – the rock place bottom is
obscured)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>Adobe also seems to make the colours and line weights
different to the others – incorrectly I suspect.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>If I run this example with transparency off (but
still using my custom transparent colours), the result is identical EXCEPT all
the colours are much more intense.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><img width=352 height=329 id="_x0000_i1026"
src="cid:image004.gif@01CDBF8E.0FE46520"> <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>In Foxit Reader it looks like this (below) with
transparency on (Foxit always makes everything transparent when transparency is
on, so it is not really a test)  So again, no difference whether using
transparent colour definitions or non-transparent.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>When transparency is off, it looks exactly the same
as in Adobe.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><img width=350 height=315 id="_x0000_i1025"
src="cid:image005.jpg@01CDBF8E.0FE46520"><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>In Evince it looks like this (after about 1 minute to
load the modest file-Evince also behaves just like Foxit, but has a problem
with hatches extending out into the bounding box as well)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><img width=349 height=326 id="_x0000_i1029"
src="cid:image006.gif@01CDBF8E.0FE46520"><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>So as you can see the viewing software may be masking
(a little) what Therion is really trying to do, however it seems to be somewhat
like either almost everything is opaque, or almost everything is transparent,
and the promise that transparent colours seem to offer some more control cannot
be realised?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>What I would like is something closer to what Adobe
is rendering (with the finer line work of Foxit) , but with the ‘rock-border
place bottom’ showing through the water when the water is defined with a
transparent colour.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>I guess when transparency is on, water and sump
should always be transparent to underlying objects, but closed rock-borders and
the rocks in ‘area blocks’ should never be.  After all that maybe
I need to be looking at the rock-border and area blocks definitions?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>Any ideas why transparent colours make no difference
at all?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>Any ideas how to make the rocks in area blocks and
closed rock-borders opaque to any objects (in the same scrap) beneath them
without messing up the transparency of other objects?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>Bruce<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>

</div>

</body>

</html>