[pstricks] Transparency and Fonts

Christopher Ellison chris_ellison at hotmail.com
Sun Jun 5 23:26:59 CEST 2005


This is absolutely stunning...not to mention much easier to create than 
in Corel Draw or Inkscape.  I am converting.

Thanks so much,
Chris

Herbert Voss wrote on 2005.06.05 13:37:

> 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}
>




More information about the PSTricks mailing list