[pstricks] Create an own Gouraud figure

Marco Daniel marcodaniel1807 at googlemail.com
Mon Jun 22 16:31:15 CEST 2009


Hello,

thanks for the link.

I tried it with the following result:
%%%
\documentclass{article}
\usepackage{pstricks-add}
\begin{document}
\psset{unit=0.5}
\begin{pspicture}(0,-10)(20,10)
% left backgroung
 \psGTriangle(0,10)(0,0)(10,0)%
   {orange!65}{orange!40}{orange!20}
 \psGTriangle(0,-10)(0,0)(10,0)%
   {orange!65}{orange!40}{orange!20}
 \psGTriangle(0,-10)(10,-10)(10,0)%
   {orange!65}{orange!40}{orange!20}
 \psGTriangle(10,0)(10,10)(0,10)%
   {orange!20}{orange!40}{orange!65}
%right background
 \psGTriangle(10,0)(20,0)(20,10)%
   {orange!20}{orange!40}{orange!65}
 \psGTriangle(10,0)(10,10)(20,10)%
   {orange!20}{orange!40}{orange!65}
 \psGTriangle(10,0)(20,0)(20,-10)%
   {orange!20}{orange!40}{orange!65}
 \psGTriangle(10,0)(10,-10)(20,-10)%
   {orange!20}{orange!40}{orange!65}
\end{pspicture}
\end{document}
%%%%

I thought there is an easier method. It would be enough when the shading 
is vertical.

regards
Marco


More information about the PSTricks mailing list