[pstricks] \defineTColor

Herbert Voss LaTeX at zedat.fu-berlin.de
Tue Aug 16 22:15:14 CEST 2005


Mr. Question wrote:

a real name would be nice ...

> How can I apply the transparency trick to lines?
> 
> For example,
> 
> \defineTColor{TWhite}{white}
> \psline[linewidth=.3,linestyle=TWhite](0,0)(5,5)
> \pscircle[linewidth=.1,linestyle=TWhite,fillstyle=none](2,2){1}
> 
> I am trying to create a circle that is not filled at all, but it should 
> have a transparent border.
> 
> Perhaps there is a better way to do this.

\documentclass{article}
\usepackage{pstricks-add}%
\pagestyle{empty}
\defineTColor[hatchsep=0.004\linewidth,fillstyle=crosshatch]{TBlue}{blue}

\begin{document}

\begin{pspicture}(5,5)
\psframe*[linecolor=magenta](4,4)
\pscircle[linestyle=none,style=TBlue](2,2){2}
\pscircle[linestyle=none,fillcolor=magenta,fillstyle=solid](2,2){1.75}
\end{pspicture}

\end{document}

search also in the mailing list. Manuel posted a solution
with "real" transparency


Herbert




More information about the PSTricks mailing list