|
Revision 4, 1.7 kB
(checked in by jms, 8 months ago)
|
Chargement de jps2ps dans le SVN.
|
| Line | |
|---|
| 1 |
%% /arrowpointe 12.5 def |
|---|
| 2 |
%% /arrowplume 2.5 def |
|---|
| 3 |
%% /arrow@ngle 60 def |
|---|
| 4 |
%% /arrowscale {1 1} def |
|---|
| 5 |
%% /arrowangle 0 def %% pour l'utilisateur |
|---|
| 6 |
%% |
|---|
| 7 |
%% /arrow { |
|---|
| 8 |
%% gsave |
|---|
| 9 |
%% arrowscale scale |
|---|
| 10 |
%% arrowangle rotate |
|---|
| 11 |
%% newpath |
|---|
| 12 |
%% 0 0 moveto |
|---|
| 13 |
%% arrowpointe neg 0 rmoveto %% ainsi c'est la pointe qui est en (0, 0) |
|---|
| 14 |
%% %% le pt extremal arriere haut |
|---|
| 15 |
%% arrowplume neg %% l'abscisse |
|---|
| 16 |
%% arrow@ngle sin arrow@ngle cos div arrowplume mul %% l'ordonnee |
|---|
| 17 |
%% rlineto |
|---|
| 18 |
%% arrowplume arrowpointe add |
|---|
| 19 |
%% arrow@ngle sin arrow@ngle cos div arrowplume mul neg |
|---|
| 20 |
%% rlineto |
|---|
| 21 |
%% arrowplume arrowpointe add neg |
|---|
| 22 |
%% arrow@ngle sin arrow@ngle cos div arrowplume mul neg |
|---|
| 23 |
%% rlineto |
|---|
| 24 |
%% closepath fill |
|---|
| 25 |
%% grestore |
|---|
| 26 |
%% } def |
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
/arrowlength 15 def |
|---|
| 30 |
/arrowsize 8.5 def |
|---|
| 31 |
/arrowinset 2.5 def |
|---|
| 32 |
/arrowscale {1 1} def |
|---|
| 33 |
/arrowangle 0 def %% pour l'utilisateur |
|---|
| 34 |
|
|---|
| 35 |
/arrow { |
|---|
| 36 |
gsave |
|---|
| 37 |
arrowscale scale |
|---|
| 38 |
arrowangle rotate |
|---|
| 39 |
newpath |
|---|
| 40 |
0 0 moveto |
|---|
| 41 |
arrowlength neg arrowsize 2 div rlineto |
|---|
| 42 |
arrowinset arrowsize 2 div neg rlineto |
|---|
| 43 |
arrowinset neg arrowsize 2 div neg rlineto |
|---|
| 44 |
closepath fill |
|---|
| 45 |
stroke |
|---|
| 46 |
grestore |
|---|
| 47 |
} def |
|---|
| 48 |
|
|---|
| 49 |
%/ahalpha 35 def |
|---|
| 50 |
/ahlength 7 def |
|---|
| 51 |
|
|---|
| 52 |
%% %% syntaxe : C B A Arrow --> fleche d'extremite A |
|---|
| 53 |
%% /Arrow { |
|---|
| 54 |
%% 8 dict begin |
|---|
| 55 |
%% /A defpoint |
|---|
| 56 |
%% /B defpoint |
|---|
| 57 |
%% /C defpoint |
|---|
| 58 |
%% /alpha ahalpha 2 div def |
|---|
| 59 |
%% C A alpha rotatepoint /C0 defpoint |
|---|
| 60 |
%% B A alpha rotatepoint /B0 defpoint |
|---|
| 61 |
%% C A alpha neg rotatepoint /C1 defpoint |
|---|
| 62 |
%% B A alpha neg rotatepoint /B1 defpoint |
|---|
| 63 |
%% C C0 C1 axesympoint /C2 defpoint |
|---|
| 64 |
%% newpath |
|---|
| 65 |
%% C0 smoveto |
|---|
| 66 |
%% [C0 .. B0 .. A] draw_ |
|---|
| 67 |
%% [A .. B1 .. C1] draw_ |
|---|
| 68 |
%% C2 C C2 vecteur addv slineto |
|---|
| 69 |
%% closepath |
|---|
| 70 |
%% gsave fill grestore |
|---|
| 71 |
%% stroke |
|---|
| 72 |
%% end |
|---|
| 73 |
%% } def |
|---|