Initialisation du projet pst-solides3d.git (SVN revision 142)
[pst-solides3d.git] / tests / test_06.tex
1 \documentclass{article}
2 \usepackage{pst-solides3d,pst-node,pst-plot,multido,url}
3 \usepackage[latin1]{inputenc}
4 \usepackage[T1]{fontenc}
5 \usepackage{colortbl}
6 \usepackage{array}
7 \usepackage[a4paper,bottom=2.5cm,top=2cm]{geometry}
8 %%\usepackage[frenchle]{babel}
9 \makeatletter
10
11 \title{\texttt{pst-solides3d} :\\
12 Test 1}
13 \date{\today }
14 \begin{document}
15 \maketitle
16
17 %\psset{lightsrc=10 20 30,viewpoint=50 20 30 rtp2xyz}
18 \psset{viewpoint=50 20 30 rtp2xyz}
19
20 \section {Test opacity avec PSTricks}
21
22
23 \begin{center}
24 \psset{unit=0.75}
25 \psset{lightsrc=10 0 10,viewpoint=50 -20 30 rtp2xyz,Decran=50}
26 \begin{pspicture*}(-5,-4)(6,9)
27 \psframe(-5,-4)(6,9)
28 \psSolid[object=grille,
29 base=-2 2 -2 2,
30 fillcolor=yellow,
31 opacity=.3]
32 \psSolid[object=grille,
33 base=-2 2 -2 2,
34 fillcolor=blue,
35 opacity=.3](0,0,1)
36 \end{pspicture*}
37 \end{center}
38
39 \section {Test opacity avec jps}
40
41
42 \begin{center}
43 \psset{unit=0.75}
44 \psset{lightsrc=10 0 10,viewpoint=50 -20 30 rtp2xyz,Decran=50}
45 \begin{pspicture*}(-5,-4)(6,9)
46 \psframe(-5,-4)(6,9)
47 \codejps{
48 -2 2 -2 2 newgrille
49 %%dup [.5 .6] solidputhuecolors
50 dup (.3 setfillopacity jaune) outputcolors
51 drawsolid*
52 -2 2 -2 2 newgrille
53 {0 0 1 translatepoint3d} solidtransform
54 %%dup [.5 .6] solidputhuecolors
55 dup (.3 setfillopacity bleu) outputcolors
56 drawsolid*
57 }
58 \end{pspicture*}
59 \end{center}
60
61 \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.