summaryrefslogtreecommitdiff
path: root/info/examples/PSTricks_7_de/35-00-30.ltx
blob: 3dccfacd9675e9c447f74db551e2b2277822911e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
%% 
%%  Ein Beispiel der DANTE-Edition
%%  
%%  7. Auflage
%% 
%%  Beispiel 35-00-30 auf Seite 831.
%% 
%%  Copyright (C) 2016 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
% Show page(s) 1
%% 
%% 
\documentclass[]{exaarticle}
\pagestyle{empty}
\setlength\textwidth{352.81416pt}
\setlength\parindent{0pt}
%StartShownPreambleCommands
\usepackage{pst-node,multido}
%StopShownPreambleCommands
\begin{document}
\definecolor{BleuVerre}{cmyk}{0.2,0,0,0}
\definecolor{MonGris}{rgb}{0.9,0.9,0.9}
\newcommand\indice{2 }
\newcommand\Radius{5 }
\newcommand\double{2 }
\newcommand\angleLimite{30 }
\psset{unit=0.75}
\begin{pspicture}*(-1,-3)(15,3)
\multido{\iAngle=30+-1}{59}{%
  \psline[linecolor=blue!40](! 0 \Radius \iAngle\space sin mul)(!
  \Radius \angleLimite cos mul \Radius \iAngle\space sin mul)
  \rput(\Radius;\iAngle){\psline[linecolor=blue!40](!
          /cosi2 1 \iAngle\space sin \indice mul dup mul sub sqrt def
          /i2 \iAngle\space sin \indice mul cosi2 atan def
          /inclinaison \iAngle\space i2 sub def
          11 11 inclinaison sin mul)}}
\pscustom[fillstyle=solid,fillcolor=BleuVerre]{%
  \psarcn(0,0){\Radius}{\angleLimite}{-\angleLimite}
  \psline(\Radius;-\angleLimite)(\Radius;\angleLimite)}
\end{pspicture}%}
\end{document}