[pstricks] Create an own Gouraud figure
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Mon Jun 22 18:14:18 CEST 2009
Marco Daniel schrieb:
> I thought there is an easier method. It would be enough when the shading
> is vertical.
\documentclass{article}
\usepackage{pstricks-add}
\def\psGRectangle(#1)(#2)#3#4#5{%
\psGTriangle(#1)(#1|#2)(#2){#3}{#4}{#5}%
\psGTriangle(#1)(#2|#1)(#2){#3}{#4}{#5}}
\begin{document}
\psset{unit=0.5}
\begin{pspicture}(0,-10)(20,10)
\psGRectangle(0,-10)(20,10){orange!65}{orange!40}{orange!20}
\end{pspicture}
\end{document}
Herbert
More information about the PSTricks
mailing list