<br><br><div class="gmail_quote">On Wed, Mar 24, 2010 at 7:42 PM, Glynn Clements <span dir="ltr">&lt;<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
pete davidson wrote:<br>
<br>
&gt; I&#39;m producing maps in svg format using the cairo driver and d.out.file.  One<br>
&gt; thing I&#39;d really like to be able to do is set one or more of the vector<br>
&gt; layers to be partially translucent.  After rummaging through this list, I&#39;m<br>
&gt; beginning to wonder if its possible at all, since translucency in the guis<br>
&gt; seems to be handled by g.pnmcomp, but perhaps someone with more experience<br>
&gt; knows a way to do it.<br>
<br>
</div>It isn&#39;t. The graphics API doesn&#39;t support an alpha component.<br>
<br>
Apart from anything else, it can&#39;t easily be implemented for<br>
PostScript output, as PostScript doesn&#39;t support translucency. Faking<br>
it with patterns is possible, but it starts getting complicated if you<br>
want more than one translucent layer.<br>
<div class="im"><br>
&gt; The only workaround I&#39;ve managed to find so far is to export each layer as<br>
&gt; an individual svg, then use something like inkscape to rejoin them, setting<br>
&gt; the translucency/transparency of each layer as I do it.  Which is fine for a<br>
&gt; map with only a few layers, but gets tedious when dealing with maps with<br>
&gt; dozens of layers.<br>
<br>
</div>SVG is XML, so it shouldn&#39;t be especially hard to automate the process<br>
using generic XML-processing tools.<br></blockquote><div><br>Ohh, I hadn&#39;t thought of editing the svg/xml directly.  Thanks for the suggestion, I&#39;ll see what I can achieve from there.<br><br>Regards,<br><br>Peter <br>
</div><br></div><br>