[pstricks] Transparency and pst-3dplot

Herbert Voss Herbert.Voss at fu-berlin.de
Tue Jan 18 06:53:32 CET 2022



Am 18.01.22 um 06:42 schrieb Hamed Alsulami:
> I did included this line "\usepackage[pspdf={-dALLOWPSTRANSPARENCY 
> -dNOSAFER}]{auto-pst-pdf}" in my file but nothing changed.

did you used --shell-escape??


pdflatex --shell-escape file.tex

Herbert


>
> \documentclass[11pt]{article}
> %\usepackage{auto-pst-pdf}
> \usepackage[pspdf={-dALLOWPSTRANSPARENCY -dNOSAFER}]{auto-pst-pdf}
> \usepackage{pst-3dplot}
>
> \begin{document}
> \begin{pspicture}(-5,-5)(5,5)
> \pstThreeDSquare[fillcolor=red,fillstyle=solid](0,0,0)(0,2,0)(2,0,0)
> \pstThreeDSquare[fillcolor=blue,fillstyle=solid,opacity=0.5](0,0,0.8)(0,2,0)(2,0,0)
> \pstThreeDEllipse[fillcolor=white,fillstyle=solid,opacity=0.5](1,1,0.8)(0,0.5,0)(0.5,0,0)
> \end{pspicture}
>
> \end{document}
>
> -- 
> Best regards,
> Hamed Alsulami
>
> --
> list: https://lists.tug.org/pstricks
> archive: https://tug.org/pipermail/pstricks/



More information about the PSTricks mailing list.