1 \documentclass[a4paper]{article}
2 \usepackage[latin1]{inputenc}
3 \usepackage[T1]{fontenc}
4 \usepackage{pst-solides3d}
6 \title{\texttt{pst-solides3d} :\\
13 \section {Test basique}
17 zcolor=(color1) (color2) (Yellow) (Apricot) (CadetBlue)
20 \begin{pspicture}(-4,-1)(4,7.5)
21 \psset{viewpoint=50 30 20 rtp2xyz}
23 \psset[pst-solides3d]{color1=red!60}
24 \psset[pst-solides3d]{color2=red!20}
25 \defFunction[algebraic]{f}(x,y)
29 \psSolid[object=surface*,
38 zcolor=(color1) (color2) (Yellow) (Apricot) (CadetBlue)
43 \section {Dégradés de couleurs}
44 \subsection {Couleurs nommées}
48 zcolor=(Apricot) (CadetBlue)
51 \begin{pspicture}(-4,-1)(4,7.5)
52 \psset{viewpoint=50 30 20 rtp2xyz}
54 \psset[pst-solides3d]{color1=red!60}
55 \psset[pst-solides3d]{color2=red!20}
56 \defFunction[algebraic]{f}(x,y)
60 \psSolid[object=surface*,
69 zcolor=(Apricot) (CadetBlue)
78 zcolor=(color1) (color2)
81 \begin{pspicture}(-4,-1)(4,7.5)
82 \psset{viewpoint=50 30 20 rtp2xyz}
84 \psset[pst-solides3d]{color1=red!60}
85 \psset[pst-solides3d]{color2=red!20}
86 \defFunction[algebraic]{f}(x,y)
90 \psSolid[object=surface*,
99 zcolor=(color1) (color2)
104 \subsection {Espace RGB}
111 \begin{pspicture}(-4,-1)(4,7.5)
112 \psset{viewpoint=50 30 20 rtp2xyz}
114 \psset[pst-solides3d]{color1=red!60}
115 \psset[pst-solides3d]{color2=red!20}
116 \defFunction[algebraic]{f}(x,y)
120 \psSolid[object=surface*,
133 \subsection {Espace CMYK}
137 zcolor=1 0 0 0 0 1 0 0
140 \begin{pspicture}(-4,-1)(4,7.5)
141 \psset{viewpoint=50 30 20 rtp2xyz}
143 \psset[pst-solides3d]{color1=red!60}
144 \psset[pst-solides3d]{color2=red!20}
145 \defFunction[algebraic]{f}(x,y)
149 \psSolid[object=surface*,
156 zcolor=1 0 0 0 0 1 0 0
160 \subsection {Espace HSB saturation et brillance max}
166 \begin{pspicture}(-4,-1)(4,7.5)
167 \psset{viewpoint=50 30 20 rtp2xyz}
169 \psset[pst-solides3d]{color1=red!60}
170 \psset[pst-solides3d]{color2=red!20}
171 \defFunction[algebraic]{f}(x,y)
175 \psSolid[object=surface*,
187 \subsection {Espace HSB saturation et brillance fixes}
193 \begin{pspicture}(-4,-1)(4,7.5)
194 \psset{viewpoint=50 30 20 rtp2xyz}
196 \psset[pst-solides3d]{color1=red!60}
197 \psset[pst-solides3d]{color2=red!20}
198 \defFunction[algebraic]{f}(x,y)
202 \psSolid[object=surface*,
213 \subsection {Espace HSB, cas général}
217 zcolor=0 .8 1 1 1 .7 (hsb)
219 \begin{pspicture}(-4,-1)(4,7.5)
220 \psset{viewpoint=50 30 20 rtp2xyz}
222 \psset[pst-solides3d]{color1=red!60}
223 \psset[pst-solides3d]{color2=red!20}
224 \defFunction[algebraic]{f}(x,y)
228 \psSolid[object=surface*,
235 zcolor=0 .8 1 1 1 .7 (hsb)