[pstricks] Transparency and Fonts

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Sun Jun 5 22:37:05 CEST 2005


Christopher Ellison wrote:

> Is there a way to create this drawing with pstricks?  Any help would be 
> greatly appreciated.
> 
> SVG supports transparency...my problem seems to be created when I export 
> to EPS...is that because EPS doesn't support transparency?  If I could 

PostScript has no transparency colors, but with some tricky
code ...

there maybe problems with some viewers ... attached, how
acroread will view it. The "colors" are fillstyles with
small lines.

Herbert



\documentclass[12pt]{article}
\usepackage{pst-3dplot}
\usepackage{pstricks-add}
\defineTColor{TRed}{red}
\defineTColor{TGreen}{green}
\defineTColor{TBlue}{blue}

\begin{document}

\begin{pspicture}(10,6)% the easy solution
   \Large\bfseries
   \psline(0,5)(5,7)\psline(5,5)(10,7)\psline(0,0)(5,2)\psline(5,0)(10,2)
   \psframe[style=TGreen](5,2)(10,7)
   \rput(6,6){1}\rput(9,6){0}\rput(6,3){0}\rput(9,3){-1}
   \psframe[style=TBlue](2.5,1)(7.5,6)
   \rput(3.5,5){0}\rput(6.5,5){ni}\rput(3.5,2){ni}\rput(6.5,2){0}
   \psframe[style=TRed](0,0)(5,5)
   \rput(1,4){0}\rput(4,4){1}\rput(1,1){1}\rput(4,1){0}
\end{pspicture}

\begin{pspicture}(-6,-6)(6,6)% the 3d-solution
\psset{Alpha=70,Beta=10}
%\pstThreeDCoor
\Large\bfseries
\pstThreeDSquare[style=TRed](-6,0,0)(0,5,0)(0,0,5)
\pstThreeDPut(-6,1,4){1}\pstThreeDPut(-6,4,4){0}
\pstThreeDPut(-6,1,1){0}\pstThreeDPut(-6,4,1){-1}
\pstThreeDSquare[style=TGreen](0,0,0)(0,5,0)(0,0,5)
\pstThreeDPut(0,1,4){0}\pstThreeDPut(0,4,4){ni}
\pstThreeDPut(0,1,1){ni}\pstThreeDPut(0,4,1){0}
\pstThreeDSquare[style=TBlue](6,0,0)(0,5,0)(0,0,5)
\pstThreeDPut(6,1,4){0}\pstThreeDPut(6,4,4){1}
\pstThreeDPut(6,1,1){1}\pstThreeDPut(6,4,1){0}
\pstThreeDLine(6,0,5)(-6,0,5)\pstThreeDLine(6,5,5)(-6,5,5)
\pstThreeDLine(6,0,0)(-6,0,0)\pstThreeDLine(6,5,0)(-6,5,0)
\end{pspicture}

\end{document}


-- 
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trans.png
Type: image/png
Size: 27591 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20050605/a710232f/attachment.png 


More information about the PSTricks mailing list