Initialisation du projet pst-solides3d.git (SVN revision 142)
[pst-solides3d.git] / tests / .svn / text-base / test_25.tex.svn-base
1 \documentclass[a4paper]{article}
2 \usepackage[latin1]{inputenc}
3 \usepackage[T1]{fontenc}
4 \usepackage{pst-solides3d}
5
6 \title{\texttt{pst-solides3d} :\\
7        Test}
8 \date{\today }
9 \begin{document}
10 \pagestyle {empty}
11 \maketitle
12
13 \section {Test basique}
14
15 \begin{verbatim}
16    tablez=2 3 4 5,
17    zcolor=(color1) (color2) (Yellow) (Apricot) (CadetBlue)
18 \end{verbatim}
19
20 \begin{pspicture}(-4,-1)(4,7.5)
21 \psset{viewpoint=50 30 20 rtp2xyz}
22 \psset{solidmemory}
23 \psset[pst-solides3d]{color1=red!60}
24 \psset[pst-solides3d]{color2=red!20}
25 \defFunction[algebraic]{f}(x,y)
26    {(x^2+y^2)/4}
27    {}
28    {}
29 \psSolid[object=surface*,
30    base=-4 4 -4 4,
31    r=5,
32    ngrid=1. .5,
33    function=f,
34    name=A,
35    color1=red!20,
36    color2=red!60,
37    tablez=2 3 4 5, 
38    zcolor=(color1) (color2) (Yellow) (Apricot) (CadetBlue)
39 ]
40 \end{pspicture}
41
42 \newpage
43 \section {Dégradés de couleurs}
44 \subsection {Couleurs nommées}
45
46 \begin{verbatim}
47    tablez=0 .2 6 {} for,
48    zcolor=(Apricot) (CadetBlue)
49 \end{verbatim}
50
51 \begin{pspicture}(-4,-1)(4,7.5)
52 \psset{viewpoint=50 30 20 rtp2xyz}
53 \psset{solidmemory}
54 \psset[pst-solides3d]{color1=red!60}
55 \psset[pst-solides3d]{color2=red!20}
56 \defFunction[algebraic]{f}(x,y)
57    {(x^2+y^2)/4}
58    {}
59    {}
60 \psSolid[object=surface*,
61    base=-4 4 -4 4,
62    r=5,
63    ngrid=1. .5,
64    function=f,
65    name=A,
66    color1=red!20,
67    color2=red!60,
68    tablez=0 .2 6 {} for,
69    zcolor=(Apricot) (CadetBlue)
70 ]
71 \end{pspicture}
72
73 \newpage
74 \begin{verbatim}
75    color1=red!20,
76    color2=red!60,
77    tablez=0 .2 5 {} for,
78    zcolor=(color1) (color2)
79 \end{verbatim}
80
81 \begin{pspicture}(-4,-1)(4,7.5)
82 \psset{viewpoint=50 30 20 rtp2xyz}
83 \psset{solidmemory}
84 \psset[pst-solides3d]{color1=red!60}
85 \psset[pst-solides3d]{color2=red!20}
86 \defFunction[algebraic]{f}(x,y)
87    {(x^2+y^2)/4}
88    {}
89    {}
90 \psSolid[object=surface*,
91    base=-4 4 -4 4,
92    r=5,
93    ngrid=1. .5,
94    function=f,
95    name=A,
96    color1=red!20,
97    color2=red!60,
98    tablez=0 .2 5 {} for,
99    zcolor=(color1) (color2)
100 ]
101 \end{pspicture}
102
103 \newpage
104 \subsection {Espace RGB}
105
106 \begin{verbatim}
107    tablez=2 3 4 5,
108    zcolor=1 0 0 0 0 1
109 \end{verbatim}
110
111 \begin{pspicture}(-4,-1)(4,7.5)
112 \psset{viewpoint=50 30 20 rtp2xyz}
113 \psset{solidmemory}
114 \psset[pst-solides3d]{color1=red!60}
115 \psset[pst-solides3d]{color2=red!20}
116 \defFunction[algebraic]{f}(x,y)
117    {(x^2+y^2)/4}
118    {}
119    {}
120 \psSolid[object=surface*,
121    base=-4 4 -4 4,
122    r=5,
123    ngrid=1. .5,
124    function=f,
125    name=A,
126    tablez=2 3 4 5,
127    zcolor=1 0 0 0 0 1
128 ]
129 \end{pspicture}
130
131
132
133 \subsection {Espace CMYK}
134
135 \begin{verbatim}
136    tablez=2 3 4 5,
137    zcolor=1 0 0 0 0 1 0 0
138 \end{verbatim}
139
140 \begin{pspicture}(-4,-1)(4,7.5)
141 \psset{viewpoint=50 30 20 rtp2xyz}
142 \psset{solidmemory}
143 \psset[pst-solides3d]{color1=red!60}
144 \psset[pst-solides3d]{color2=red!20}
145 \defFunction[algebraic]{f}(x,y)
146    {(x^2+y^2)/4}
147    {}
148    {}
149 \psSolid[object=surface*,
150    base=-4 4 -4 4,
151    r=5,
152    ngrid=1. .5,
153    function=f,
154    name=A,
155    tablez=2 3 4 5,
156    zcolor=1 0 0 0 0 1 0 0
157 ]
158 \end{pspicture}
159
160 \subsection {Espace HSB saturation et brillance max}
161
162 \begin{verbatim}
163    tablez=2 3 4 5,
164    zcolor=.5 .6
165 \end{verbatim}
166 \begin{pspicture}(-4,-1)(4,7.5)
167 \psset{viewpoint=50 30 20 rtp2xyz}
168 \psset{solidmemory}
169 \psset[pst-solides3d]{color1=red!60}
170 \psset[pst-solides3d]{color2=red!20}
171 \defFunction[algebraic]{f}(x,y)
172    {(x^2+y^2)/4}
173    {}
174    {}
175 \psSolid[object=surface*,
176    base=-4 4 -4 4,
177    r=5,
178    ngrid=1. .5,
179    function=f,
180    name=A,
181    tablez=2 3 4 5,
182    zcolor=.5 .6
183 ]
184 \end{pspicture}
185
186
187 \subsection {Espace HSB saturation et brillance fixes}
188
189 \begin{verbatim}
190    tablez=2 3 4 5,
191    zcolor=.5 .6 .8 .7
192 \end{verbatim}
193 \begin{pspicture}(-4,-1)(4,7.5)
194 \psset{viewpoint=50 30 20 rtp2xyz}
195 \psset{solidmemory}
196 \psset[pst-solides3d]{color1=red!60}
197 \psset[pst-solides3d]{color2=red!20}
198 \defFunction[algebraic]{f}(x,y)
199    {(x^2+y^2)/4}
200    {}
201    {}
202 \psSolid[object=surface*,
203    base=-4 4 -4 4,
204    r=5,
205    ngrid=1. .5,
206    function=f,
207    name=A,
208    tablez=2 3 4 5,
209    zcolor=.5 .6 .8 .7
210 ]
211 \end{pspicture}
212
213 \subsection {Espace HSB, cas général}
214
215 \begin{verbatim}
216    tablez=2 3 4 5,
217    zcolor=0 .8 1 1 1 .7 (hsb)
218 \end{verbatim}
219 \begin{pspicture}(-4,-1)(4,7.5)
220 \psset{viewpoint=50 30 20 rtp2xyz}
221 \psset{solidmemory}
222 \psset[pst-solides3d]{color1=red!60}
223 \psset[pst-solides3d]{color2=red!20}
224 \defFunction[algebraic]{f}(x,y)
225    {(x^2+y^2)/4}
226    {}
227    {}
228 \psSolid[object=surface*,
229    base=-4 4 -4 4,
230    r=5,
231    ngrid=1. .5,
232    function=f,
233    name=A,
234    tablez=2 3 4 5,
235    zcolor=0 .8 1 1 1 .7 (hsb)
236 ]
237 \end{pspicture}
238
239 \end{document}

Licence Creative Commons Les fichiers de Syracuse sont mis à disposition (sauf mention contraire) selon les termes de la
Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International.