Retour

logo_pstricks.tex

Télécharger le fichier
\documentclass{article}
\usepackage{pst-V3D,pst-grad}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}% utiliser obligatoirement ce codage !!!
% sinon affichage des lettres accentuées
% très perturbées !!!
\usepackage[frenchb]{babel}
\usepackage[a4paper]{geometry}
\input{cube_object.tex}
\input{icosahedron_with_holes.tex}
\input{octahedral_object.tex}
\input{sphereII_object.tex}
 
\def\Rectangle(#1,#2)(#3,#4){
newpath
#1 #2 moveto
#3 #2 lineto
#3 #4 lineto
#1 #4 lineto
 closepath }
 
 
\definecolor{Orange}{rgb}{.956 .643 .376}
 
 
\newpsstyle{GradWhiteYellow}{fillstyle=gradient,%
    gradbegin=yellow,gradend=yellow!20,linecolor=yellow!50,linewidth=0.01}%
\pagestyle{empty}
\begin{document}
\begin{center}
\begin{pspicture}(-5,-6)(6,4)
\psset{d=10,A=4,THETA=80,PHI=20,Dobs=30,Decran=10,linecolor=white,PSfont=Helvetica}
\psset{ColorFace1= 0.8 0.6 0.2 ,
    ColorFace2= 0.8 0.4 0.2 ,
    ColorFace3= 0.75 0.45 0.2 ,
    ColorFace4= 0.7 0.40 0.2 ,
    ColorFace5= 0.65 0.35 .2 ,
    ColorFace6= 0.6 0.3 0.2 ,
    ColorFacette = 0.8 0.8 0.8 }
\planThreeDput[fillstyle=solid,fillcolor=Orange,normale=90 -90]{\Rectangle(-14,-14)(9,17)}
\planThreeDput[gridcolor=white,normale=90 -90,fontscale=0.5]{\Grille(-14,-14)(9,17)}
\psCube[d=10,A=4,RotZ=30](5,-10,2)
\psCube[RotZ=30](5 4 30 sin mul sub ,-10 4 30 cos mul add,2)
\psCube[RotZ=30](5 8 30 sin mul sub ,-10 8 30 cos mul add,2)
\psCube[RotZ=30](5 12 30 sin mul sub ,-10 12 30 cos mul add,2)
\psCube[RotZ=30](5 16 30 sin mul sub ,-10 16 30 cos mul add,2)
\psCube[RotZ=30](5 20 30 sin mul sub ,-10 20 30 cos mul add,2)
\psCube[RotZ=30](5 24 30 sin mul sub ,-10 24 30 cos mul add,2)
\psCube[RotZ=30](5 28 30 sin mul sub ,-10 28 30 cos mul add,2)
{\psset{normale=0 0,linewidth=0.1,fillstyle=solid,fillcolor=white,fontscale=5,yO=-0.6,RotZ=30}
\textThreeDput[translation=5 -10 2,normale=0 0,fontscale=5,yO=-0.6,RotZ=30](2,0,0){P}
\textThreeDput[translation=5 4 30 sin mul sub -10 4 30 cos mul add 2,RotZ=30](2,0,0){S}
\textThreeDput[translation=5 8 30 sin mul sub -10 8 30 cos mul add 2,fontscale=5,yO=-0.6](2,0,0){T}
\textThreeDput[translation=5 12 30 sin mul sub -10 12 30 cos mul add 2](2,0,0){R}
\textThreeDput[translation=5 16 30 sin mul sub -10 16 30 cos mul add 2](2,0,0){I}
\textThreeDput[translation=5 20 30 sin mul sub -10 20 30 cos mul add 2](2,0,0){C}
\textThreeDput[translation=5 24 30 sin mul sub -10 24 30 cos mul add 2](2,0,0){K}
\textThreeDput[translation=5 28 30 sin mul sub -10 28 30 cos mul add 2](2,0,0){S}
\textThreeDput[translation=5 28 30 sin mul sub -10 28 30 cos mul add 2](2,0,0){S}}
\psset{normale=90 90,fontscale=2.5,fillstyle=solid,fillcolor=white,xO=3,linecolor=white}
\textThreeDput(5,6,0){et}
\textThreeDput(5,9,0){LaTeX}
\textThreeDput(5,12,0){des milliers}
\textThreeDput(5,15,0){d'utilisateurs}
\end{pspicture}
\end{center}
\newpage
\begin{center}
\begin{pspicture*}(-10,-6)(6,4)
\psset{THETA=35,PHI=15,Dobs=40,Decran=20,normale=90 0,radius=5}
\planThreeDput[fillstyle=solid,fillcolor=Orange,normale=90 -90]{\Rectangle(-14,-14)(9,17)}
\planThreeDput[gridcolor=white,normale=90 -90,fontscale=0.5]{\Grille(-14,-14)(9,17)}
\psOctahedral[radius=2,RotZ=20](5,-2,2)
\psIcosahedronH[RotZ=20,radius=2](-2,5,2)
%
\planThreeDput[fillstyle=solid,fillcolor=gray,normale=90 45](8,8,0){\Rectangle(-3,-1)(3,0.707)}
\planThreeDput[fillstyle=solid,fillcolor=white,normale=45 45](8,8,1){\Rectangle(-3,-1.414)(3,0.707)}
\textThreeDput[linewidth=0.01,fillstyle=solid,fillcolor=red,normale=45 45,fontscale=1,PSfont=Helvetica,yO=-0.5](8,8,1){BIENVENUE}
\end{pspicture*}
\end{center}
 
\end{document}