| 1 |
\documentclass{article} |
|---|
| 2 |
\usepackage[T1]{fontenc} |
|---|
| 3 |
\usepackage[latin1]{inputenc} |
|---|
| 4 |
\usepackage[a4paper,margin=2cm]{geometry} |
|---|
| 5 |
\usepackage{pstricks-add,pst-map3d} |
|---|
| 6 |
\pagestyle{empty} |
|---|
| 7 |
\definecolor{BlueDark}{cmyk}{1,1,0,0.5} |
|---|
| 8 |
\newpsstyle{Globe}{gridmap=true,daynight=false,circles=false,blueEarth=false, |
|---|
| 9 |
borders=false,islands=false, |
|---|
| 10 |
rivers=false,lakes=false} |
|---|
| 11 |
\newpsstyle{ShadowGlobe}{fillstyle=vlines,linewidth=2\pslinewidth,opacity=0.8} |
|---|
| 12 |
\makeatletter |
|---|
| 13 |
\newdimen\pssizeStar |
|---|
| 14 |
\def\psset@sizeStar#1{\pssetlength\pssizeStar{#1}} |
|---|
| 15 |
\psset@sizeStar{1.5pt} |
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
\def\psRandomStar{\pst@object{psRandomStar}} |
|---|
| 20 |
\def\psRandomStar@i{\@ifnextchar({\psRandomStar@ii}{\psRandomStar@iii(0,0)(1,1)}} |
|---|
| 21 |
\def\psRandomStar@ii(#1){\@ifnextchar({\psRandomStar@iii(#1)}{\psRandomStar@iii(0,0)(#1)}} |
|---|
| 22 |
\def\psRandomStar@iii(#1)(#2)#3{ |
|---|
| 23 |
\def\pst@tempA{#3} |
|---|
| 24 |
\ifx\pst@tempA\pst@empty\psclip{\psframe(#2)}\else\psclip{#3}\fi |
|---|
| 25 |
\pst@getcoor{#1}\pst@tempA |
|---|
| 26 |
\pst@getcoor{#2}\pst@tempB |
|---|
| 27 |
\begin@SpecialObj |
|---|
| 28 |
\addto@pscode{ |
|---|
| 29 |
\pst@tempA\space /yMin exch def |
|---|
| 30 |
/xMin exch def |
|---|
| 31 |
\pst@tempB\space /yMax exch def |
|---|
| 32 |
/xMax exch def |
|---|
| 33 |
/dy yMax yMin sub def |
|---|
| 34 |
/dx xMax xMin sub def |
|---|
| 35 |
rrand srand |
|---|
| 36 |
/getRandReal { rand 2147483647 div } def |
|---|
| 37 |
\psk@randomPoints { |
|---|
| 38 |
/DS \pst@number\pssizeStar\space getRandReal mul def |
|---|
| 39 |
\@nameuse{psds@\psk@dotstyle} |
|---|
| 40 |
\ifPst@color getRandReal 1 1 sethsbcolor \fi |
|---|
| 41 |
getRandReal dx mul xMin add |
|---|
| 42 |
getRandReal dy mul yMin add |
|---|
| 43 |
Dot |
|---|
| 44 |
\ifx\psk@fillstyle\psfs@solid fill \fi stroke |
|---|
| 45 |
} repeat |
|---|
| 46 |
} |
|---|
| 47 |
\end@SpecialObj |
|---|
| 48 |
\endpsclip |
|---|
| 49 |
\ignorespaces |
|---|
| 50 |
} |
|---|
| 51 |
\makeatother |
|---|
| 52 |
\begin{document} |
|---|
| 53 |
\psset{Radius=5,Decran=100,Dobs=100} |
|---|
| 54 |
\begin{center} |
|---|
| 55 |
\begin{pspicture}(-7,-8)(7,6) |
|---|
| 56 |
\psframe(-7,-8)(7,6) |
|---|
| 57 |
\psline(-10;48.85)(8;48.85) |
|---|
| 58 |
\rput(-10;48.85){\psline(3,0)\psarc{->}(0,0){2}{0}{48.85}\uput[24.4](2;24.4){48.85}} |
|---|
| 59 |
\psGlobeTellure[hour=16,Day=22,Month=09,Year=2008,styleNight=ShadowGlobe](2.32,48.85000){Paris} |
|---|
| 60 |
\end{pspicture} |
|---|
| 61 |
\end{center} |
|---|
| 62 |
\end{document} |
|---|
| 63 |
|
|---|
| 64 |
|
|---|