[pstricks] different colour by using pst-solides3d

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sat Aug 14 10:35:22 CEST 2010


Am 11.08.2010 21:08, schrieb Marco Daniel:

> In the following example the the fillcolor and the linecolor are equal
> but the result is different. Why?
> %%%%%%%%%%%%%%%%%%%%
> \setcounter{errorcontextlines}{100}
> \documentclass{article}
> \usepackage[cmyk]{pstricks}
[...]


> If you use hue you will get a similar colour.

use the hsb model:

\documentclass{article}
\usepackage{pst-solides3d}
\begin{document}

\begin{pspicture}(5,5)
\psset{lightsrc=viewpoint, viewpoint=20 300 10 rtp2xyz,Decran=20,algebraic}
\psSurface[
 fillcolor={[hsb]{0.542,0.546,1}},
 ngrid=0.05 0.05,
  incolor=black!50,
grid,
 action=draw**,
](-1,-1)(1,1){ x*y }
\psline[linecolor={[hsb]{0.542,0.546,1}},linewidth=5pt](-1,-1)(1,1)
\end{pspicture}

\end{document}

Herbert


More information about the PSTricks mailing list